Module client

Source
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§

BlockSubsidy
A response to a getblocksubsidy RPC request
BlockTemplateResponse
A serialized getblocktemplate RPC response in template mode.
Commitments
A wrapper that contains either an Orchard or Sapling note commitment tree.
DefaultRoots
The block header roots for [GetBlockTemplate.transactions].
FundingStream
A single funding stream’s information in a getblocksubsidy RPC request
GetBlockSubsidyResponse
A response to a getblocksubsidy RPC request
GetBlockTemplateParameters
Optional parameter jsonrequestobject for getblocktemplate RPC request.
GetBlockchainInfoBalance
A value pool’s balance in Zec and Zatoshis
GetMiningInfoResponse
Response to a getmininginfo RPC request.
GetSubtreesByIndexResponse
Response to a z_getsubtreesbyindex RPC request.
GetTreestateResponse
Response to a z_gettreestate RPC request.
HexData
Deserialize hex-encoded strings to bytes.
MempoolObject
A mempool transaction details object as returned by getrawmempool in verbose mode.
Orchard
Object with Orchard-specific information.
OrchardAction
The Orchard action of a transaction.
Output
The transparent output of a transaction.
PeerInfo
Item of the getpeerinfo response
ScriptPubKey
The scriptPubKey of a transaction output.
ScriptSig
The scriptSig of a transaction input.
ShieldedOutput
A Sapling output of a transaction.
ShieldedSpend
A Sapling spend of a transaction.
TransactionObject
A Transaction object as returned by getrawtransaction and getblock RPC requests.
TransactionTemplate
Transaction data and fields needed to generate blocks using the getblocktemplate RPC.
Treestate
A treestate that is included in the z_gettreestate RPC response.
ValidateAddressResponse
validateaddress response
ZListUnifiedReceiversResponse
z_listunifiedreceivers response
ZValidateAddressResponse
z_validateaddress response

Enums§

BlockProposalResponse
Response to a getblocktemplate RPC request in proposal mode.
BlockTemplateTimeSource
The source of the time in the block proposal header.
GetBlockTemplateCapability
Valid capabilities values that indicate client-side support.
GetBlockTemplateRequestMode
Defines whether the RPC method should generate a block template or attempt to validate a block proposal.
GetBlockTemplateResponse
A getblocktemplate RPC response.
GetRawMempoolResponse
Response to a getrawmempool RPC request.
Input
The transparent input of a transaction.
SubmitBlockErrorResponse
Response to a submitblock RPC request.
SubmitBlockResponse
Response to a submitblock RPC request.
ZValidateAddressType
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§

GetPeerInfoResponse
Response type for the getpeerinfo RPC method.
SubtreeRpcData
A subtree data type that can hold Sapling or Orchard subtree roots.