Module model

Module model 

Source
Expand description

Models of the data returned by the JSON-RPC API of Bitcoin Core.

The types here model the data returned by Bitcoin Core in a version non-specific way. In other words one can use a particular bitcoind version via the version specific module (e.g. crate::v26) then convert the json types to one of the modelled types in this module using TryFrom.

Structs§

Bip9SoftforkInfo
Status of BIP-9 softforks.
Bip9SoftforkStatistics
Statistics for a BIP-9 softfork.
ChainTips
An individual list item from the result of JSON-RPC method getchaintips.
CreateWallet
Models the result of JSON-RPC method createwallet.
Generate
Models the result of JSON-RPC method generate.
GenerateToAddress
Models the result of JSON-RPC method generatetoaddress.
GetBalance
Models the result of JSON-RPC method getbalance.
GetBalances
Models the result of JSON-RPC method getbalances.
GetBalancesMine
Balances from outputs that the wallet can sign.
GetBalancesWatchOnly
Hash and height of the block this information was generated on.
GetBestBlockHash
Models the result of JSON-RPC method getbestblockhash.
GetBlockCount
Models the result of JSON-RPC method getblockcount.
GetBlockHash
Models the result of JSON-RPC method getblockhash.
GetBlockHeader
Models the result of JSON-RPC method getblockheader.
GetBlockHeaderVerbose
Models the result of JSON-RPC method getblockheader.
GetBlockStats
Models the result of JSON-RPC method getblockstats.
GetBlockVerbosityOne
Models the result of JSON-RPC method getblock with verbosity set to 1.
GetBlockVerbosityZero
Models the result of JSON-RPC method getblock with verbosity set to 0.
GetBlockchainInfo
Models the result of JSON-RPC method getblockchaininfo.
GetChainTips
Result of JSON-RPC method getchaintips.
GetChainTxStats
Result of JSON-RPC method getchaintxstats.
GetDifficulty
Result of JSON-RPC method getdifficulty.
GetMempoolAncestors
Result of JSON-RPC method getmempoolancestors with verbose set to false.
GetMempoolAncestorsVerbose
Result of JSON-RPC method getmempoolancestors with verbose set to true.
GetNetworkInfo
Models the result of JSON-RPC method getnetworkinfo.
GetNetworkInfoAddress
Part of the result of the JSON-RPC method getnetworkinfo (local address info).
GetNetworkInfoNetwork
Part of the result of the JSON-RPC method getnetworkinfo (information per network).
GetNewAddress
Models the result of JSON-RPC method getnewaddress.
GetTransaction
Models the result of JSON-RPC method gettransaction.
GetTransactionDetail
Part of the GetTransaction.
GetTxOut
Models the result of JSON-RPC method gettxout.
LoadWallet
Models the result of JSON-RPC method loadwallet.
SendRawTransaction
Models the result of JSON-RPC method sendrawtransaction.
SendToAddress
Models the result of JSON-RPC method sendtoaddress.
Softfork
Status of softfork.
UnloadWallet
Models the result of JSON-RPC method unloadwallet.

Enums§

Bip9SoftforkStatus
BIP-9 softfork status: one of “defined”, “started”, “locked_in”, “active”, “failed”.
ChainTipsStatus
The status field from an individual list item from the result of JSON-RPC method getchaintips.
GetTransactionDetailCategory
Enum to represent the category of a transaction.
SoftforkType
The softfork type: one of “burried”, “bip9”.