Crate zebra_rpc

Source
Expand description

A Zebra Remote Procedure Call (RPC) interface

Modules§

client
Client for Zebra’s RPC server. Types, constants, and functions needed by clients of Zebra’s RPC server
config
User-configurable settings.
indexer
A tonic RPC server for Zebra’s indexer API.
methods
Zebra supported RPC methods.
queue
Transaction Queue.
server
A JSON-RPC 1.0 & 2.0 endpoint for Zebra.
sync
Syncer task for maintaining a non-finalized state in Zebra’s ReadStateService and updating ChainTipSender via RPCs

Structs§

SubmitBlockChannel
A submit block channel, used to inform the gossip task about mined blocks.

Functions§

fetch_state_tip_and_local_time
Returns the state data for the block template.
generate_coinbase_and_roots
Generates and returns the coinbase transaction and default roots.
proposal_block_from_template
Returns a block proposal generated from a BlockTemplateResponse RPC response.