getreceivedbyaddress
walletgetreceivedbyaddress "address" ( minconf include_immature_coinbase )
Returns the total amount received by the given address in transactions with at least minconf confirmations.
Arguments:
1. address (string, required) The bitweb address for transactions.
2. minconf (numeric, optional, default=1) Only include transactions confirmed at least this many times.
3. include_immature_coinbase (boolean, optional, default=false) Include immature coinbase transactions.
Result:
n (numeric) The total amount in BTE received at this address.
Examples:
The amount from transactions with at least 1 confirmation
> bitweb-cli getreceivedbyaddress "web1qjau2mr7g9ar5uvhwdn72x0zrs4q2f6xnmqqhhm"
The amount including unconfirmed transactions, zero confirmations
> bitweb-cli getreceivedbyaddress "web1qjau2mr7g9ar5uvhwdn72x0zrs4q2f6xnmqqhhm" 0
The amount with at least 6 confirmations
> bitweb-cli getreceivedbyaddress "web1qjau2mr7g9ar5uvhwdn72x0zrs4q2f6xnmqqhhm" 6
The amount with at least 6 confirmations including immature coinbase outputs
> bitweb-cli getreceivedbyaddress "web1qjau2mr7g9ar5uvhwdn72x0zrs4q2f6xnmqqhhm" 6 true
As a JSON-RPC call
> curl --user myusername --data-binary '{"jsonrpc": "2.0", "id": "curltest", "method": "getreceivedbyaddress", "params": ["web1qjau2mr7g9ar5uvhwdn72x0zrs4q2f6xnmqqhhm", 6]}' -H 'content-type: application/json' http://127.0.0.1:26332/
← すべてのメソッド
v30.3.0