Skip to main content

getreceivedbyaddress

Overview

The 'getreceivedbyaddress' method allows you to retrieve the total amount received by a specified Bitcoin address in transactions with at least a minimum number of confirmations (minconf).

Request

wget --no-check-certificate --quiet \
--method POST \
--timeout=0 \
--header 'Content-Type: application/json' \
--header 'accept: application/json' \
--header 'X-CoinAPI-Key: 73034021-THIS-IS-SAMPLE-KEY' \
--body-data '{"jsonrpc":"2.0","id":1,"method":"getreceivedbyaddress","params": [ ]}' \
'https://bitcoin-mainnet.node.coinapi.io'

Request Parameters

  • address (string, required): The Bitcoin address for which the transactions are to be retrieved.
  • minconf (numeric, optional, default=1): Only include transactions that have been confirmed at least this many times.

Response

Response when verbose is true:

{
"result": {
"n": "numeric",
"description": "The total amount in BTC received at this address."
}
}