z_listreceivedbyaddress - Zcash 5.5.0 RPC

z_listreceivedbyaddress "address" ( minconf asOfHeight )

Return a list of amounts received by a zaddr belonging to the node's wallet.

1. "address"      (string) The shielded address.
2. minconf        (numeric, optional, default=1) Only include transactions confirmed at least this many times.
3. asOfHeight       (numeric, optional, default=-1) Execute the query as if it
                    were run when the blockchain was at the height specified by
                    this argument. The default is to use the entire blockchain
                    that the node is aware of. -1 can be used as in other RPC
                    calls to indicate the current height (including the
                    mempool), but this does not support negative values in
                    general. A “future” height will fall back to the current
                    height. Any explicit value will cause the mempool to be
                    ignored, meaning no unconfirmed tx will be considered.
                    `minconf` must be at least 1 when `asOfHeight` is provided.

Result (output indices for only one value pool will be present):
    "pool": "pool"                (string) one of ("transparent", "sprout", "sapling", "orchard")
    "txid": "txid",               (string) the transaction id
    "amount": xxxxx,              (numeric) the amount of value in the note
    "amountZat" : xxxx            (numeric) The amount in zatoshis
    "memo": xxxxx,                (string) hexadecimal string representation of memo field
    "confirmations" : n,          (numeric) the number of confirmations
    "blockheight": n,             (numeric) The block height containing the transaction
    "blockindex": n,              (numeric) The block index containing the transaction.
    "blocktime": xxx,             (numeric) The transaction time in seconds since epoch (midnight Jan 1 1970 GMT).
    "jsindex" (sprout) : n,       (numeric) the joinsplit index
    "jsoutindex" (sprout) : n,    (numeric) the output index of the joinsplit
    "outindex" (sapling, orchard) : n, (numeric) the Sapling output index, or the Orchard action index
    "change": true|false,         (boolean) true if the output was received to a change address

> zcash-cli z_listreceivedbyaddress "ztfaW34Gj9FrnGUEf833ywDVL62NWXBM81u6EQnM6VR45eYnXhwztecW1SjxA7JrmAXKJhxhj3vDNEpVCQoSvVoSpmbhtjf"
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "z_listreceivedbyaddress", "params": ["ztfaW34Gj9FrnGUEf833ywDVL62NWXBM81u6EQnM6VR45eYnXhwztecW1SjxA7JrmAXKJhxhj3vDNEpVCQoSvVoSpmbhtjf"] }' -H 'content-type: text/plain;'

Maintained by @_garethtdavies; modified by: mdr0id;license of the docs is MIT (see zcash repo), license of the scripts and webpage is also MIT (github repo)

Note it uses a mainnet zcash node