Expand description
Zebra supported RPC methods.
Based on the zcashd
RPC methods
as used by lightwalletd.
Some parts of the zcashd
RPC documentation are outdated.
So this implementation follows the zcashd
server and lightwalletd
client implementations.
Re-exports§
pub use get_block_template_rpcs::GetBlockTemplateRpcImpl;
pub use get_block_template_rpcs::GetBlockTemplateRpcServer;
Modules§
- get_
block_ template_ rpcs - Mining-related RPCs.
- hex_
data - Deserializes hex-encoded inputs such as the one required
for the
submitblock
RPC method. - opthex 🔒
- A helper module to serialize
Option<T: ToHex>
as a hex string. - trees
- Types and functions for note commitment tree RPCs.
- types
- Types used in RPC methods.
Structs§
- Address
Balance - The transparent balance of a set of addresses.
- Address
Strings - A wrapper type with a list of transparent address strings.
- Consensus
Branch IdHex - A hex-encoded
ConsensusBranchId
string. - GetAddress
TxIds Request - A struct to use as parameter of the
getaddresstxids
. - GetAddress
Utxos - Response to a
getaddressutxos
RPC request. - GetBlock
Chain Info - Response to a
getblockchaininfo
RPC request. - GetBlock
Hash - Response to a
getbestblockhash
andgetblockhash
RPC request. - GetBlock
Header Object - Verbose response to a
getblockheader
RPC request. - GetBlock
Height AndHash - Response to a
getbestblockheightandhash
RPC request. - GetBlock
Trees - Information about the sapling and orchard note commitment trees if any.
- GetInfo
- Response to a
getinfo
RPC request. - Network
Upgrade Info - Information about
NetworkUpgrade
activation. - Orchard
Trees - Orchard note commitment tree information.
- RpcImpl
- RPC method implementations.
- Sapling
Trees - Sapling note commitment tree information.
- Sent
Transaction Hash - Response to a
sendrawtransaction
RPC request. - TipConsensus
Branch - The
ConsensusBranchId
s for the tip and the next block.
Enums§
- GetBlock
- Response to a
getblock
RPC request. - GetBlock
Header - Response to a
getblockheader
RPC request. - GetBlock
Transaction - The transaction list in a
getblock
call. Can be a list of transaction IDs or the full transaction details depending on verbosity. - GetRaw
Transaction - Response to a
getrawtransaction
RPC request. - Network
Upgrade Status - The activation status of a
NetworkUpgrade
.
Traits§
- RpcServer
- Server trait implementation for the
Rpc
RPC API.
Functions§
- best_
chain_ tip_ height - Returns the best chain tip height of
latest_chain_tip
, or an RPC error if there are no blocks in the state. - build_
height_ 🔒range - Build a valid height range from the given optional start and end numbers.
- chain_
tip_ difficulty - Returns the proof-of-work difficulty as a multiple of the minimum difficulty.
- height_
from_ signed_ int - Given a potentially negative index, find the corresponding
Height
.
Type Aliases§
- Logged
Last Event - A type alias for the last event logged by the server.