Crate corepc_types

Source
Expand description

Types returned by the JSON-RPC API of Bitcoin Core.

Each type has rustdocs copied from Core, bugs and all. Additional docs were only added if things really didn’t make sense. Only required arguments are documented. To see what optional arguments are available run bitcoin-cli help <method> against the version of Core you are interested in.

Re-exports§

pub extern crate bitcoin;

Modules§

model
Models of the data returned by the JSON-RPC API of Bitcoin Core.
v17
JSON-RPC types for Bitcoin Core v0.17.
v18
JSON-RPC types for Bitcoin Core v0.18
v19
JSON-RPC types for Bitcoin Core v0.19
v20
JSON-RPC types for Bitcoin Core v0.20
v21
JSON-RPC types for Bitcoin Core v0.21
v22
JSON-RPC types for Bitcoin Core v22
v23
JSON-RPC types for Bitcoin Core v23
v24
JSON-RPC types for Bitcoin Core v24
v25
JSON-RPC types for Bitcoin Core v25
v26
JSON-RPC types for Bitcoin Core v26
v27
JSON-RPC types for Bitcoin Core v27
v28
JSON-RPC types for Bitcoin Core v28
v29
JSON-RPC types for Bitcoin Core v29

Structs§

ScriptPubkey
Data returned by Core for a script pubkey.
ScriptSig
Data returned by Core for a script signature.

Enums§

NumericError
Error converting an i64 to a u32.

Functions§

compact_size_decode
Gets the compact size encoded value from slice and moves slice past the encoding.
to_u32
Converts an i64 numeric type to a u32.