public class BitcoinNetwork extends BitcoinClientSupport implements Network
client| Modifier | Constructor and Description |
|---|---|
protected |
BitcoinNetwork(Blockchain blockchain,
wf.bitcoin.javabitcoindrpcclient.BitcoindRpcClient client) |
| Modifier and Type | Method and Description |
|---|---|
BigDecimal |
estimateFee() |
List<String> |
generate(int numBlocks) |
List<String> |
generate(int numBlocks,
Wallet.Address address) |
Block |
getBestBlock() |
String |
getBestBlockHash() |
Block |
getBlock(String blockHash) |
Integer |
getBlockCount() |
Integer |
getBlockRate() |
getRpcClientprotected BitcoinNetwork(Blockchain blockchain, wf.bitcoin.javabitcoindrpcclient.BitcoindRpcClient client)
public BigDecimal estimateFee()
estimateFee in interface Networkpublic List<String> generate(int numBlocks, Wallet.Address address)
public String getBestBlockHash()
getBestBlockHash in interface Networkpublic Block getBestBlock()
getBestBlock in interface Networkpublic Integer getBlockCount()
getBlockCount in interface Networkpublic Integer getBlockRate()
getBlockRate in interface NetworkCopyright © 2018. All rights reserved.