getreceivedbyaddress - Pastel RPC

getreceivedbyaddress "zcashaddress" ( minconf )

Returns the total amount received by the given Pastel address in transactions with at least minconf confirmations.

1. "zcashaddress"  (string, required) The Pastel address for transactions.
2. minconf             (numeric, optional, default=1) Only include transactions confirmed at least this many times.

amount   (numeric) The total amount in PSL received at this address.


The amount from transactions with at least 1 confirmation
> pastel-cli getreceivedbyaddress "PtczsZ91Bt3oDPDQotzUsrx1wjmsFVgf28n"

The amount including unconfirmed transactions, zero confirmations
> pastel-cli getreceivedbyaddress "PtczsZ91Bt3oDPDQotzUsrx1wjmsFVgf28n" 0

The amount with at least 6 confirmations, very safe
> pastel-cli getreceivedbyaddress "PtczsZ91Bt3oDPDQotzUsrx1wjmsFVgf28n" 6

As a json rpc call
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getreceivedbyaddress", "params": ["PtczsZ91Bt3oDPDQotzUsrx1wjmsFVgf28n", 6] }' -H 'content-type: text/plain;'

Maintained by Pastel Network; license of the docs is MIT (see pastel repo)

Generated from a mainnet node