Package org.consensusj.bitcoin.json.rpc
Interface BitcoinJsonRpc
- All Known Implementing Classes:
MicronautWalletAppKitService
,WalletAppKitService
public interface BitcoinJsonRpc
Standard Bitcoin JSON-RPC API RPCs. For now, this is a subset implementation that is not fully-compatible
with Bitcoin Core. Some parameters are missing and the defined response types may omit some properties.
All parameters are object types so null
can be used to represent an omitted optional parameter.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
static final int
-
Method Summary
Modifier and TypeMethodDescriptionCompletableFuture
<org.bitcoinj.base.Coin> CompletableFuture
<org.bitcoinj.base.Sha256Hash> CompletableFuture
<org.bitcoinj.base.Sha256Hash> getblockhash
(Integer blockNumber) getblockheader
(String blockHashString, Boolean verbose) CompletableFuture
<org.bitcoinj.base.Address> help()
CompletableFuture
<org.bitcoinj.base.Sha256Hash> sendrawtransaction
(String hex) CompletableFuture
<org.bitcoinj.base.Sha256Hash> sendtoaddress
(String address, Double amount) Currently all UTXOs must be present in the wallet andsighashtype
defaults to"ALL"
.stop()
-
Field Details
-
DEFAULT_MIN_CONF
- See Also:
-
DEFAULT_MAX_CONF
- See Also:
-
-
Method Details
-
getbestblockhash
CompletableFuture<org.bitcoinj.base.Sha256Hash> getbestblockhash() -
getblock
-
getblockchaininfo
-
getblockcount
-
getblockhash
-
getblockheader
-
help
-
stop
-
getconnectioncount
-
getnetworkinfo
-
createrawtransaction
-
sendrawtransaction
-
getbalance
CompletableFuture<org.bitcoinj.base.Coin> getbalance() -
getnewaddress
CompletableFuture<org.bitcoinj.base.Address> getnewaddress() -
listunspent
CompletableFuture<List<UnspentOutput>> listunspent(Integer minConf, Integer maxConf, List<String> addresses, Boolean includeUnsafe) -
sendtoaddress
-
signrawtransactionwithwallet
Currently all UTXOs must be present in the wallet andsighashtype
defaults to"ALL"
.- Parameters:
hex
- hex-encoded unsigned raw transaction- Returns:
- An object containing the signed transaction
-