Re-exports
pub use light::BitcoinLight;
pub use bitcoincore_rpc::bitcoin as bitcoin_primitives;
pub use bitcoincore_rpc::bitcoin::hashes;
pub use bitcoincore_rpc::bitcoin::secp256k1;
pub use bitcoincore_rpc::json;
pub use bitcoincore_rpc::jsonrpc;
Modules
- Bitcoin addresses.
- Bitcoin consensus.
- Bitcoin keys.
- Enables wildcard imports to bring into scope all opcodes and nothing else.
- Partially Signed Bitcoin Transactions.
- SHA256 implementation.
- Utility functions.
Structs
- A Bitcoin address.
- Amount
- Bitcoin block.
- A bitcoin block hash.
- Bitcoin block header.
- An Object which can be used to construct a script piece by piece.
- Client implements a JSON-RPC client for the Bitcoin Core daemon or compatible APIs.
- An ECDSA signature with the corresponding hash type.
- Models the result of “getblockchaininfo”
- Fixed-size uninterpreted hash type with 32 bytes (256 bits) size.
- This type is consensus valid but an input including it would prevent the transaction from being relayed on today’s Bitcoin network.
- A reference to a transaction output.
- Data structure that represents a partial merkle tree.
- A Bitcoin ECDSA private key
- A hash of a public key.
- A Bitcoin ECDSA public key
- A JSONRPC error object
- Bitcoin script slice.
- A hash of Bitcoin Script bytecode.
- Secret 256-bit key used as
x
in an ECDSA signature. - SignedAmount
- Bitcoin transaction.
- Bitcoin transaction input.
- A hash of the Merkle tree branch or root for transactions
- Bitcoin transaction output.
- A bitcoin transaction hash/transaction ID.
- A variable-length unsigned integer.
- SegWit version of a public key hash.
- SegWit version of a Bitcoin Script bytecode hash.
Enums
- Used to represent an address type.
- The different authentication methods for the client.
- The error type for errors produced in this library.
- Enum to represent the category of a transaction.
- A library error
- An absolute lock time value, representing either a block height or a UNIX timestamp (seconds since epoch).
- The cryptocurrency network to act on.
- The method used to produce an address.
Constants
- the bitcoin core version. See https://github.com/bitcoin/bitcoin/blob/833add0f48b0fad84d7b8cf9373a349e7aef20b4/src/rpc/net.cpp#L627 and https://github.com/bitcoin/bitcoin/blob/833add0f48b0fad84d7b8cf9373a349e7aef20b4/src/clientversion.h#L33-L37
- Average time to mine a Bitcoin block.
- The size (in bytes) of a serialized public key.
- timeout on the jsonrpc transport. jsonrpc default is 15 seconds.
Traits
- Trait for objects that can be deserialized from hex strings.
- Trait which applies to hashes of all types.
- Extension trait for transaction, adding methods to help to match the Transaction to Replace/Redeem requests
Functions
- Deserializes an object from a vector, will error if said deserialization doesn’t consume the entire vector.
- Stream over transactions, starting with this in the mempool and continuing with transactions from previous in-chain block. The stream ends after the block at
stop_height
has been returned. - Encodes an object into a vector.
- Stream blocks continuously
from_height
awaiting the production of new blocks as reported by Bitcoin core. The stream never ends. - Stream all transactions in blocks produced by Bitcoin Core.