Get desktop application:
View/edit binary Protocol Buffers messages
Return the BlockID of the block at the tip of the best chain
Chainspec is a placeholder to allow specification of a particular chain fork.
(message has no fields)
Return the compact block corresponding to the given block identifier
Same as GetBlock except actions contain only nullifiers
Return a list of consecutive compact blocks
Same as GetBlockRange except actions contain only nullifiers
Return the requested full (not compact) transaction (as from zcashd)
A TxFilter contains the information needed to identify a particular transaction: either a block and an index, or a direct transaction hash. Currently, only specification by hash is supported.
block identifier, height or hash
index within the block
transaction ID (hash, txid)
Submit the given transaction to the Zcash network
A SendResponse encodes an error code and a string. It is currently used only by SendTransaction(). If error code is zero, the operation was successful; if non-zero, it and the message specify the failure.
Return the txids corresponding to the given t-address within the given block range
TransparentAddressBlockFilter restricts the results to the given address or block range.
t-address
start, end heights
Return the compact transactions currently in the mempool; the results can be a few seconds out of date. If the Exclude list is empty, return all transactions; otherwise return all *except* those in the Exclude list (if any); this allows the client to avoid receiving transactions that it already has (from an earlier call to this rpc). The transaction IDs in the Exclude list can be shortened to any number of bytes to make the request more bandwidth-efficient; if two or more transactions in the mempool match a shortened txid, they are all sent (none is excluded). Transactions in the exclude list that don't exist in the mempool are ignored.
Return a stream of current Mempool transactions. This will keep the output stream open while there are mempool transactions. It will close the returned stream when a new block is mined.
GetTreeState returns the note commitment tree state corresponding to the given block. See section 3.7 of the Zcash protocol specification. It returns several other useful values also (even though they can be obtained using GetBlock). The block can be specified by either height or hash.
Returns a stream of information about roots of subtrees of the Sapling and Orchard note commitment trees.
Index identifying where to start returning subtree roots
Shielded protocol to return subtree roots for
Maximum number of entries to return, or 0 for all entries.
The 32-byte Merkle root of the subtree.
The hash of the block that completed this subtree.
The height of the block that completed this subtree in the main chain.
Return information about this lightwalletd instance and the blockchain
LightdInfo returns various information about this lightwalletd instance and the state of the blockchain.
true
either "main" or "test"
depends on mainnet or testnet
protocol identifier, see consensus/upgrades.cpp
latest block on the best chain
less than tip height if zcashd is syncing
example: "v4.1.1-877212414"
example: "/MagicBean:4.1.1/"
Zcash donation UA address
Testing-only, requires lightwalletd --ping-very-insecure (do not enable in production)
Duration is currently used only for testing, so that the Ping rpc can simulate a delay, to create many simultaneous connections. Units are microseconds.
PingResponse is used to indicate concurrency, how many Ping rpcs are executing upon entry and upon exit (after the delay). This rpc is used for testing only.
Used as response type in: CompactTxStreamer.GetTaddressBalance, CompactTxStreamer.GetTaddressBalanceStream
A BlockID message contains identifiers to select a block: a height or a hash. Specification by hash is not implemented, but may be in the future.
Used as request type in: CompactTxStreamer.GetBlock, CompactTxStreamer.GetBlockNullifiers, CompactTxStreamer.GetTreeState
Used as response type in: CompactTxStreamer.GetLatestBlock
Used as field type in:
,BlockRange specifies a series of blocks from start to end inclusive. Both BlockIDs must be heights; specification by hash is not yet supported.
Used as request type in: CompactTxStreamer.GetBlockRange, CompactTxStreamer.GetBlockRangeNullifiers
Used as field type in:
Information about the state of the chain as of a given block.
Used in:
the size of the Sapling note commitment tree as of the end of this block
the size of the Orchard note commitment tree as of the end of this block
A compact representation of the shielded data in a Zcash block. CompactBlock is a packaging of ONLY the data from a block that's needed to: 1. Detect a payment to your Shielded address 2. Detect a spend of your Shielded notes 3. Update your witnesses to generate new spend proofs.
Used as response type in: CompactTxStreamer.GetBlock, CompactTxStreamer.GetBlockNullifiers, CompactTxStreamer.GetBlockRange, CompactTxStreamer.GetBlockRangeNullifiers
the version of this wire format, for storage
the height of this block
the ID (hash) of this block, same as in block explorers
the ID (hash) of this block's predecessor
Unix epoch time when the block was mined
(hash, prevHash, and time) OR (full header)
zero or more compact transactions from this block
information about the state of the chain as of this block
A compact representation of an [Orchard Action](https://zips.z.cash/protocol/protocol.pdf#actionencodingandconsensus).
Used in:
[32] The nullifier of the input note
[32] The x-coordinate of the note commitment for the output note
[32] An encoding of an ephemeral Pallas public key
[52] The first 52 bytes of the encCiphertext field
A compact representation of a [Sapling Output](https://zips.z.cash/protocol/protocol.pdf#outputencodingandconsensus). It encodes the `cmu` field, `ephemeralKey` field, and a 52-byte prefix of the `encCiphertext` field of a Sapling Output Description. Total size is 116 bytes.
Used in:
Note commitment u-coordinate.
Ephemeral public key.
First 52 bytes of ciphertext.
A compact representation of a [Sapling Spend](https://zips.z.cash/protocol/protocol.pdf#spendencodingandconsensus). CompactSaplingSpend is a Sapling Spend Description as described in 7.3 of the Zcash protocol specification.
Used in:
Nullifier (see the Zcash protocol specification)
A compact representation of the shielded data in a Zcash transaction. CompactTx contains the minimum information for a wallet to know if this transaction is relevant to it (either pays to it or spends from it) via shielded elements only. This message will not encode a transparent-to-transparent transaction.
Used as response type in: CompactTxStreamer.GetMempoolTx
Used as field type in:
Index and hash will allow the receiver to call out to chain explorers or other data structures to retrieve more information about this transaction.
the index within the full block
the ID (hash) of this transaction, same as in block explorers
The transaction fee: present if server can provide. In the case of a stateless server and a transaction with transparent inputs, this will be unset because the calculation requires reference to prior transactions. If there are no transparent inputs, the fee will be calculable as: valueBalanceSapling + valueBalanceOrchard + sum(vPubNew) - sum(vPubOld) - sum(tOut)
Empty is for gRPCs that take no arguments, currently only GetLightdInfo.
Used as request type in: CompactTxStreamer.GetLatestTreeState, CompactTxStreamer.GetLightdInfo, CompactTxStreamer.GetMempoolStream
(message has no fields)
Results are sorted by height, which makes it easy to issue another request that picks up from where the previous left off.
Used as request type in: CompactTxStreamer.GetAddressUtxos, CompactTxStreamer.GetAddressUtxosStream
zero means unlimited
Used as response type in: CompactTxStreamer.GetAddressUtxosStream
Used as field type in:
RawTransaction contains the complete transaction data. It also optionally includes the block height in which the transaction was included, or, when returned by GetMempoolStream(), the latest block height. FIXME: the documentation here about mempool status contradicts the documentation for the `height` field. See https://github.com/zcash/librustzcash/issues/1484
Used as request type in: CompactTxStreamer.SendTransaction
Used as response type in: CompactTxStreamer.GetMempoolStream, CompactTxStreamer.GetTaddressTxids, CompactTxStreamer.GetTransaction
exact data returned by Zcash 'getrawtransaction'
height that the transaction was mined (or -1)
Used in:
The TreeState is derived from the Zcash z_gettreestate rpc.
Used as response type in: CompactTxStreamer.GetLatestTreeState, CompactTxStreamer.GetTreeState
"main" or "test"
block height
block id
Unix epoch time when the block was mined
sapling commitment tree state
orchard commitment tree state