public abstract class AbstractNetwork extends RpcClientSupport implements Network
| Modifier and Type | Field and Description |
|---|---|
protected org.slf4j.Logger |
LOG |
client| Modifier | Constructor and Description |
|---|---|
protected |
AbstractNetwork(Blockchain blockchain,
wf.bitcoin.javabitcoindrpcclient.BitcoindRpcClient client) |
| Modifier and Type | Method and Description |
|---|---|
List<String> |
generate(int numBlocks)
Generate the given number of blocks
|
List<String> |
generate(int numBlocks,
Wallet.Address address)
Generate the given number of blocks to the given address
|
Integer |
getBlockCount()
Get the block count
|
String |
getBlockHash(Integer height)
Get the block hash for the given height
|
wf.bitcoin.javabitcoindrpcclient.BitcoindRpcClient.NetworkInfo |
getNetworkInfo()
Returns information about the node’s connection to the network.
|
getRpcClientclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitestimateFee, getBlock, getBlockRate, getDustThreshold, getMinDataAmountprotected AbstractNetwork(Blockchain blockchain, wf.bitcoin.javabitcoindrpcclient.BitcoindRpcClient client)
public String getBlockHash(Integer height)
NetworkgetBlockHash in interface Networkpublic Integer getBlockCount()
NetworkgetBlockCount in interface Networkpublic wf.bitcoin.javabitcoindrpcclient.BitcoindRpcClient.NetworkInfo getNetworkInfo()
NetworkgetNetworkInfo in interface Networkpublic List<String> generate(int numBlocks)
NetworkCopyright © 2018. All rights reserved.