Expand description
Client for Zebra’s RPC server. Types, constants, and functions needed by clients of Zebra’s RPC server
Re-exports§
pub use crate::methods::BlockHeaderObject;
pub use crate::methods::BlockObject;
pub use crate::methods::GetAddressBalanceRequest;
pub use crate::methods::GetAddressBalanceResponse;
pub use crate::methods::GetAddressTxIdsRequest;
pub use crate::methods::GetAddressUtxosResponse;
pub use crate::methods::GetBlockHashResponse;
pub use crate::methods::GetBlockHeaderResponse;
pub use crate::methods::GetBlockHeightAndHashResponse;
pub use crate::methods::GetBlockResponse;
pub use crate::methods::GetBlockTransaction;
pub use crate::methods::GetBlockTrees;
pub use crate::methods::GetBlockchainInfoResponse;
pub use crate::methods::GetInfoResponse;
pub use crate::methods::GetRawTransactionResponse;
pub use crate::methods::Hash;
pub use crate::methods::SendRawTransactionResponse;
pub use crate::methods::Utxo;
pub use zebra_chain;
Structs§
- Block
Subsidy - A response to a
getblocksubsidy
RPC request - Block
Template Response - A serialized
getblocktemplate
RPC response in template mode. - Commitments
- A wrapper that contains either an Orchard or Sapling note commitment tree.
- Default
Roots - The block header roots for [
GetBlockTemplate.transactions
]. - Funding
Stream - A single funding stream’s information in a
getblocksubsidy
RPC request - GetBlock
Subsidy Response - A response to a
getblocksubsidy
RPC request - GetBlock
Template Parameters - Optional parameter
jsonrequestobject
forgetblocktemplate
RPC request. - GetBlockchain
Info Balance - A value pool’s balance in Zec and Zatoshis
- GetMining
Info Response - Response to a
getmininginfo
RPC request. - GetSubtrees
ByIndex Response - Response to a
z_getsubtreesbyindex
RPC request. - GetTreestate
Response - Response to a
z_gettreestate
RPC request. - HexData
- Deserialize hex-encoded strings to bytes.
- Mempool
Object - A mempool transaction details object as returned by
getrawmempool
in verbose mode. - Orchard
- Object with Orchard-specific information.
- Orchard
Action - The Orchard action of a transaction.
- Output
- The transparent output of a transaction.
- Peer
Info - Item of the
getpeerinfo
response - Script
PubKey - The scriptPubKey of a transaction output.
- Script
Sig - The scriptSig of a transaction input.
- Shielded
Output - A Sapling output of a transaction.
- Shielded
Spend - A Sapling spend of a transaction.
- Transaction
Object - A Transaction object as returned by
getrawtransaction
andgetblock
RPC requests. - Transaction
Template - Transaction data and fields needed to generate blocks using the
getblocktemplate
RPC. - Treestate
- A treestate that is included in the
z_gettreestate
RPC response. - Validate
Address Response validateaddress
response- ZList
Unified Receivers Response z_listunifiedreceivers
response- ZValidate
Address Response z_validateaddress
response
Enums§
- Block
Proposal Response - Response to a
getblocktemplate
RPC request in proposal mode. - Block
Template Time Source - The source of the time in the block proposal header.
- GetBlock
Template Capability - Valid
capabilities
values that indicate client-side support. - GetBlock
Template Request Mode - Defines whether the RPC method should generate a block template or attempt to validate a block proposal.
- GetBlock
Template Response - A
getblocktemplate
RPC response. - GetRaw
Mempool Response - Response to a
getrawmempool
RPC request. - Input
- The transparent input of a transaction.
- Submit
Block Error Response - Response to a
submitblock
RPC request. - Submit
Block Response - Response to a
submitblock
RPC request. - ZValidate
Address Type - Address types supported by the
z_validateaddress
RPC according to https://zcash.github.io/rpc/z_validateaddress.html.
Constants§
- LONG_
POLL_ ID_ LENGTH - Constants needed by clients of Zebra’s RPC server
The length of a serialized
LongPollId
string.
Type Aliases§
- GetPeer
Info Response - Response type for the
getpeerinfo
RPC method. - Subtree
RpcData - A subtree data type that can hold Sapling or Orchard subtree roots.