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::AddressStrings;Deprecated 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::GetAddressUtxosResponseObject;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
getblocksubsidyRPC request - Block
Template Response - A serialized
getblocktemplateRPC response in template mode. - Commitments
- A wrapper that contains either an Orchard or Sapling note commitment tree.
- Default
Roots - The block header roots for the transactions in a block template.
- Funding
Stream - A single funding stream’s information in a
getblocksubsidyRPC request - GetBlock
Subsidy Response - A response to a
getblocksubsidyRPC request - GetBlock
Template Parameters - Optional parameter
jsonrequestobjectforgetblocktemplateRPC request. - GetBlockchain
Info Balance - A value pool’s balance in Zec and Zatoshis
- GetMining
Info Response - Response to a
getmininginfoRPC request. - GetNetwork
Info Response - Response to a
getnetworkinfoRPC request - GetSubtrees
ByIndex Response - Response to a
z_getsubtreesbyindexRPC request. - GetTreestate
Response - Response to a
z_gettreestateRPC request. - HexData
- Deserialize hex-encoded strings to bytes.
- Join
Split - A Sprout JoinSplit of a transaction.
- Mempool
Object - A mempool transaction details object as returned by
getrawmempoolin verbose mode. - Orchard
- Object with Orchard-specific information.
- Orchard
Action - The Orchard action of a transaction.
- Orchard
Flags - Object with Orchard-specific information.
- Output
- The transparent output of a transaction.
- Peer
Info - Item of the
getpeerinforesponse - 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
getrawtransactionandgetblockRPC requests. - Transaction
Template - Transaction data and fields needed to generate blocks using the
getblocktemplateRPC. - Treestate
- A treestate that is included in the
z_gettreestateRPC response. - Validate
Address Response validateaddressresponse- ZList
Unified Receivers Response z_listunifiedreceiversresponse- ZValidate
Address Response z_validateaddressresponse
Enums§
- Block
Proposal Response - Response to a
getblocktemplateRPC request in proposal mode. - Block
Template Time Source - The source of the time in the block proposal header.
- GetBlock
Template Capability - Valid
capabilitiesvalues 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
getblocktemplateRPC response. - GetRaw
Mempool Response - Response to a
getrawmempoolRPC request. - Input
- The transparent input of a transaction.
- Submit
Block Error Response - Response to a
submitblockRPC request. - Submit
Block Response - Response to a
submitblockRPC request. - ZValidate
Address Type - Address types supported by the
z_validateaddressRPC 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
LongPollIdstring.
Type Aliases§
- GetPeer
Info Response - Response type for the
getpeerinfoRPC method. - Subtree
RpcData - A subtree data type that can hold Sapling or Orchard subtree roots.