Skip to main content

Module methods

Module methods 

Source
Expand description

Implements CompactTxStreamer methods on the LightwalletdRPC type.

ConstantsΒ§

MAX_EXCLUDE_ENTRIES πŸ”’
The maximum number of exclude entries a GetMempoolTx client can send.
MAX_RAW_TRANSACTION_BYTES πŸ”’
The maximum size of a raw transaction submitted by a client.
RESPONSE_BUFFER_SIZE πŸ”’
The maximum number of messages that can be queued to be streamed to a client.
STREAM_SEND_TIMEOUT πŸ”’
How long to wait for a backpressured send to a response stream before treating the consumer as hung and dropping the stream.

FunctionsΒ§

address_balance πŸ”’
Fetches the total balance of a list of transparent addresses.
address_utxos πŸ”’
Fetches the UTXOs for a list of transparent addresses, at or above the given start height, at most max_entries of them.
block_id_to_hash_or_height πŸ”’
Converts a BlockId into a HashOrHeight, using the hash if it is present and the height otherwise.
block_range_stream πŸ”’
Returns a stream of compact blocks for the given block range.
check_address_count πŸ”’
Returns an error if there are too many addresses in a single request.
collect_streamed_addresses πŸ”’
Returns an error if addresses exceeds MAX_REQUEST_ADDRESSES. Collects the transparent addresses a client streams, validating each one as it arrives and stopping at the first invalid or excess entry.
compact_block πŸ”’
Fetches a block and its note commitment tree sizes from the state, and converts them into a CompactBlock.
excluded_txids πŸ”’
Returns the transaction IDs excluded by an Exclude list of shortened transaction IDs.
mempool_transactions πŸ”’
Fetches all transactions currently in the mempool.
raw_transaction_by_txid πŸ”’
Fetches a mined transaction from the best chain by its transaction ID.
rpc_arg_error_to_status πŸ”’
Converts a JSON-RPC method error into a gRPC status, for a call whose arguments the client supplied and Zebra has not already validated.
rpc_error_to_status πŸ”’
Converts a JSON-RPC method error into a gRPC status, for a lookup of something the client asked for by identifier.
send_bounded πŸ”’
Sends item to a response stream, returning false if the client disconnected or stopped reading.
send_raw_mempool_tx πŸ”’
Sends a mempool transaction to a raw transaction stream, returning false if the client disconnected or hung, or the transaction could not be serialized.
send_unseen_mempool_txs πŸ”’
Sends every mempool transaction that isn’t already in sent_txids, adding the ones it sends, and returns false if the client went away or the mempool query failed.
serialize_transaction πŸ”’
Serializes a transaction into raw bytes for a RawTransaction.
taddress_transactions_stream πŸ”’
Returns a stream of raw transactions for the given transparent address and block range, in block order.
treestate_to_proto πŸ”’
Converts a GetTreestateResponse into a lightwalletd TreeState.

Type AliasesΒ§

ResponseStream πŸ”’
A type alias for the boxed response streams returned by server-streaming methods.