logo
pub struct RpcBlockchain { /* private fields */ }
This is supported on crate feature rpc only.
Expand description

The main struct for RPC backend implementing the crate::blockchain::Blockchain trait

Methods from Deref<Target = Client>

Get the underlying JSONRPC client.

Trait Implementations

Return the set of Capability supported by this backend

Broadcast a transaction

Estimate the fee rate required to confirm a transaction in a given target of blocks

Returns RpcBlockchain backend creating an RPC client to a specific wallet named as the descriptor’s checksum if it’s the first time it creates the wallet in the node and upon return is granted the wallet is loaded

Type that contains the configuration

Formats the value using the given formatter. Read more

The resulting type after dereferencing.

Dereferences the value.

Performs the conversion.

fetch block hash given its height

Return the current height

Fetch a transaction given its txid

Setup the backend and populate the internal database for the first time Read more

If not overridden, it defaults to calling Self::wallet_setup internally. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.