Skip to main content

Crate bitcoin_rpc

Crate bitcoin_rpc 

Source
Expand description

A JSON-RPC client for Bitcoin Core.

The typed methods and their result types are transcribed from Bitcoin Core v31.1. Replies from v29 onward deserialize: every field Core added after v29 is an Option that is None on an older node, and each such field’s docs say which release introduced it.

Enable the sync feature for a blocking client or the aio feature for an async one. Neither is enabled by default.

Modules§

aioaio
Async client. Requires the aio feature.
paramsaio or sync
Helpers for building JSON-RPC parameter lists.
prelude
Everything you normally want in scope.
syncsync
Blocking client. Requires the sync feature.
types
Request and response types.

Structs§

RpcError
An error returned by the Bitcoin Core node itself.

Enums§

Auth
How to authenticate against the node’s RPC interface.
Error
Anything that can go wrong when talking to a node.

Type Aliases§

Result
Result alias used throughout this crate.