getreceivedbyaddress - Okcash RPC

getreceivedbyaddress "address" ( minconf )

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

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

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


The amount from transactions with at least 1 confirmation
> okcashd getreceivedbyaddress "PGMBwqLidvr1hE2qLVw2sVwzEoShgouVxg"

The amount including unconfirmed transactions, zero confirmations
> okcashd getreceivedbyaddress "PGMBwqLidvr1hE2qLVw2sVwzEoShgouVxg" 0

The amount with at least 6 confirmation
> okcashd getreceivedbyaddress "PGMBwqLidvr1hE2qLVw2sVwzEoShgouVxg" 6

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

Okcash Core RPC documentation.

Okcash version:

OK RPC docs at:Github