Skip to main content

Crate bitcoin_rs_rpc

Crate bitcoin_rs_rpc 

Source
Expand description

Synchronous Bitcoin Core-compatible JSON-RPC surface for bitcoin-rs.

This crate intentionally exposes only watch-only wallet behavior. RPCs that would reveal, import, create, or use private keys are disabled and return a JSON-RPC internal-error response with the message wallet has no private keys; use external signer. PSBT construction, combination, analysis, and finalization stay available because they can be driven by external signers without this process holding private key material.

Re-exports§

pub use auth::Auth;
pub use context::BlockBodySource;
pub use context::BlockRecord;
pub use context::Context;
pub use context::NetworkState;
pub use context::PruneResult;
pub use context::PruneService;
pub use context::PruneServiceError;
pub use context::PruneStatus;
pub use context::ZmqNotification;
pub use error::RpcError;
pub use handlers::Handler;
pub use server::RpcServer;

Modules§

auth
HTTP Basic and cookie authentication.
context
Dependency-injected RPC state.
error
JSON-RPC error mapping.
handlers
Method dispatch and Core-compatible handlers.
server
Synchronous HTTP/1.1 JSON-RPC server.