getreceivedbyaddress - Okcash RPC

getreceivedbyaddress "address" ( minconf )

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

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

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

Examples:

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;' http://127.0.0.1:6969/


Okcash Core RPC documentation.

Okcash version: 5.0.0.3

OK RPC docs at:Github