Expand description
§Rust Client for Bitcoin Core API
This is a client library for the Bitcoin Core JSON-RPC API.
Re-exports§
pub extern crate bitcoin;
Modules§
- serde_
hex - A module used for serde serialization of bytes in hexadecimal format.
Structs§
- AddMulti
SigAddress Result - Bip9
Softfork Info - Bip9
Softfork Statistics - Block
Info - Info on amounts in the block at the block height of the
gettxoutsetinfo
call (only available if coinstatsindex is used) - Block
Ref - Models the result of “waitfornewblock”, and “waitforblock”
- Create
RawTransaction Input - Decode
RawTransaction Result - Model for decode transaction
- Descriptor
- Estimate
Smart FeeResult - Models the result of “estimatesmartfee”
- FeeRate
Percentiles - Finalize
Psbt Result - Models the result of “finalizepsbt”
- Fund
RawTransaction Options - Fund
RawTransaction Result - GetAdded
Node Info Result - GetAdded
Node Info Result Address - GetAddress
Info Result - GetAddress
Info Result Embedded - GetBalances
Result - GetBalances
Result Entry - GetBlock
Filter Result - GetBlock
Header Result - GetBlock
Result - GetBlock
Stats Result - GetBlock
Stats Result Partial - GetBlock
Template Options - Models the request options of “getblocktemplate”
- GetBlock
Template Result - Models the result of “getblocktemplate”
- GetBlock
Template Result Transaction - Models a single transaction entry in the result of “getblocktemplate”
- GetBlockchain
Info Result - Models the result of “getblockchaininfo”
- GetChain
Tips Result Tip - Models a single chain tip for the result of “getchaintips”
- GetDescriptor
Info Result - Models the result of “getdescriptorinfo”
- GetIndex
Info Result - GetMempool
Entry Result - GetMempool
Entry Result Fees - GetMempool
Info Result - GetMining
Info Result - GetNet
Totals Result - GetNet
Totals Result Upload Target - GetNetwork
Info Result - GetNetwork
Info Result Address - GetNetwork
Info Result Network - GetNode
Addresses Result - GetPeer
Info Result - Models the result of “getpeerinfo”
- GetRaw
Transaction Result - GetRaw
Transaction Result Vin - GetRaw
Transaction Result VinScript Sig - GetRaw
Transaction Result Vout - GetRaw
Transaction Result Vout Script PubKey - GetTransaction
Result - GetTransaction
Result Detail - GetTx
OutResult - GetTx
OutSet Info Result - GetWallet
Info Result - Import
Descriptors - A import request for importdescriptors.
- Import
Multi Options - Import
Multi Request - A import request for importmulti.
- Import
Multi Result - Import
Multi Result Error - Index
Status - List
Banned Result - List
Descriptors Result - List
Received ByAddress Result - List
Since Block Result - List
Transaction Result - List
Unspent Query Options - List
Unspent Result Entry - List
Wallet DirItem - List
Wallet DirResult - Load
Wallet Result - Reject
Status - Progress toward rejecting pre-softfork blocks
- Scan
TxOut Result - SigHash
Type - A wrapper around bitcoin::EcdsaSighashType that will be serialized according to what the RPC expects.
- Sign
RawTransaction Input - Sign
RawTransaction Result - Sign
RawTransaction Result Error - Softfork
- Status of a softfork
- Test
Mempool Accept Result - Test
Mempool Accept Result Fees - Unload
Wallet Result - Unspendables
- Detailed view of the unspendable categories
- Utxo
- Wallet
Create Funded Psbt Options - Models the request for “walletcreatefundedpsbt”
- Wallet
Create Funded Psbt Result - Models the result of “walletcreatefundedpsbt”
- Wallet
Process Psbt Result - Models the result of “walletprocesspsbt”
- Wallet
TxInfo
Enums§
- Address
Type - Used to represent an address type.
- Bip9
Softfork Status - Bip125
Replaceable - Enum to represent the BIP125 replaceable status for a transaction.
- Block
Stats Fields - Estimate
Mode - GetAdded
Node Info Result Address Type - GetAddress
Info Result Label - GetAddress
Info Result Label Purpose - GetBlock
Template Capabilities - Enum to represent client-side supported features
- GetBlock
Template Modes - Enum to represent client-side supported features.
- GetBlock
Template Resul Mutations - Enum to representing mutable parts of the block template. This does only cover the muations implemented in Bitcoin Core. More mutations are defined in BIP-23, but not implemented in the getblocktemplate implementation of Bitcoin Core.
- GetBlock
Template Result Capabilities - Enum to represent Bitcoin Core’s supported features for getblocktemplate
- GetBlock
Template Result Rules - Enum to representing specific block rules that client must support to work with the template returned by Bitcoin Core
- GetBlock
Template Rules - Enum to representing specific block rules that the requested template should support.
- GetChain
Tips Result Status - GetPeer
Info Result Connection Type - GetPeer
Info Result Network - GetTransaction
Result Detail Category - Enum to represent the category of a transaction.
- Hash
OrHeight - Used to specify a block hash or a height
- Import
Multi Request Script Pubkey - PubKey
OrAddress - Used to represent arguments that can either be an address or a public key.
- Scan
TxOut Request - Start a scan of the UTXO set for an output descriptor.
- Scanning
Details - Script
Pubkey Type - Softfork
Type - Timestamp
- TxOut
SetHash Type - Used to represent UTXO set hash type
Type Aliases§
- GetChain
Tips Result - Models the result of “getchaintips”