Module extended_bitcoin_rpc

Source
Expand description

§Bitcoin Extended RPC Interface

Extended RPC interface communicates with the Bitcoin node. It features some common wrappers around typical RPC operations as well as direct communication interface with the Bitcoin node.

§Tests

In tests, Bitcoind node and client are usually created using [crate::test::common::create_regtest_rpc]. Please refer to [crate::test::common] for using ExtendedBitcoinRpc in tests.

Structs§

ExtendedBitcoinRpc
Bitcoin RPC wrapper with retry logic.
RetryConfig
Configuration for retry behavior with exponential backoff.

Enums§

BitcoinRPCError
Errors that can occur during Bitcoin RPC operations.

Traits§

BridgeRpcQueries
Extension trait for bridge-specific RPC queries.
RetryableError
Trait to determine if an error is retryable.

Functions§

get_fee_rate_from_mempool_space
Fetches the current recommended fee rate from the provider. Currently only supports Mempool Space API. This function is used to get the fee rate in sat/vkb (satoshis per kilovbyte). See Mempool Space API for more details.