Skip to main content

Crate zebra_rpc

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§

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

Functions§

fetch_chain_info
Returns the state data for the block template.
proposal_block_from_template
Returns a block proposal generated from a BlockTemplateResponse RPC response.