Struct core_rpc::Client[][src]

pub struct Client { /* fields omitted */ }
Expand description

Client implements a JSON-RPC client for the Bitcoin Core daemon or compatible APIs.

Implementations

Creates a client to a bitcoind JSON-RPC server.

Can only return Err when using cookie authentication.

Create a new Client using the given jsonrpc::Client.

Get the underlying JSONRPC client.

Trait Implementations

Formats the value using the given formatter. Read more

Call an cmd rpc with given args list

Query an object implementing Querable type

Returns a data structure containing various state info regarding blockchain processing. Read more

Returns the numbers of block in the longest chain.

Returns the hash of the best (tip) block in the longest blockchain.

Get block hash at a given height

To unlock, use [unlock_unspent].

Unlock all unspent UTXOs.

👎 Deprecated

Generate new address under own control

Mine block_num blocks and pay coinbase to address Read more

Mine up to block_num blocks immediately (before the RPC call returns) to an address in the wallet. Read more

Mark a block as invalid by block_hash

Mark a block as valid by block_hash

Get txids of all transactions in a memory pool

fn get_mempool_entry(&self, txid: &Txid) -> Result<GetMempoolEntryResult>

Get mempool data for given transaction

Get information about all known tips in the block tree, including the main chain as well as stale branches. Read more

Returns data about each connected network node as an array of PeerInfo Read more

Requests that a ping be sent to all other nodes, to measure ping time. Read more

Waits for a specific new block and returns useful info about it. Returns the current block on timeout or exit. Read more

Waits for a specific new block and returns useful info about it. Returns the current block on timeout or exit. Read more

Returns statistics about the unspent transaction output set. This call may take some time. Read more

Returns information about network traffic, including bytes in, bytes out, and current time. Read more

Returns the estimated network hashes per second based on the last n blocks.

Returns the total uptime of the server in seconds

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 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.