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 |
|---|---|
java.util.List<java.lang.String> |
generate(int numBlocks,
Wallet.Address addr)
Generate the given number of blocks to the given address
|
java.lang.Integer |
getBlockCount()
Get the block count
|
java.lang.String |
getBlockHash(java.lang.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.
|
getRpcClient, queryclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitestimateSmartFee, getBlock, getBlockRate, getDustThreshold, getMinDataAmount, getMinTxFee, getVersionprotected AbstractNetwork(Blockchain blockchain, wf.bitcoin.javabitcoindrpcclient.BitcoindRpcClient client)
public java.lang.String getBlockHash(java.lang.Integer height)
NetworkgetBlockHash in interface Networkpublic java.lang.Integer getBlockCount()
NetworkgetBlockCount in interface Networkpublic wf.bitcoin.javabitcoindrpcclient.BitcoindRpcClient.NetworkInfo getNetworkInfo()
NetworkgetNetworkInfo in interface Networkpublic java.util.List<java.lang.String> generate(int numBlocks,
Wallet.Address addr)
NetworkCopyright © 2018. All rights reserved.