RPC Browser

Command: getreceivedbyaddress


getreceivedbyaddress "address" ( minconf )

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

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

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


The amount from transactions with at least 1 confirmation
> litecoin-cli getreceivedbyaddress "LEr4hNAefWYhBMgxCFP2Po1NPrUeiK8kM2"

The amount including unconfirmed transactions, zero confirmations
> litecoin-cli getreceivedbyaddress "LEr4hNAefWYhBMgxCFP2Po1NPrUeiK8kM2" 0

The amount with at least 6 confirmations
> litecoin-cli getreceivedbyaddress "LEr4hNAefWYhBMgxCFP2Po1NPrUeiK8kM2" 6

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

Blockchain (22)

Control (5)

Generating (2)

Mining (5)

Network (12)

Rawtransactions (8)

Util (6)

Wallet (48)