Skip to main content

getaddressesbylabel

Overview

The 'getaddressesbylabel' Returns the list of addresses assigned the specified label.

Request

wget --no-check-certificate --quiet \
--method POST \
--timeout=0 \
--header 'Content-Type: application/json' \
--header 'accept: application/json' \
--header 'X-CoinAPI-Key: 4303fb63-adec-42dc-b571-74bc2f2a5167' \
--body-data '{"jsonrpc":"2.0","id":1,"method":"getaddressesbylabel","params": [ ]}' \
'https://bitcoin-mainnet.node.coinapi.io'

Request Parameters

  • label: The label.

Response

{
"result": null,
"error": {
"code": -1,
"message": "getaddressesbylabel \"label\"\n\nReturns the list of addresses assigned the specified label.\n\nArguments:\n1. label (string, required) The label.\n\nResult:\n{ (json object) json object with addresses as keys\n \"address\" : { (json object) json object with information about address\n \"purpose\" : \"str\" (string) Purpose of address (\"send\" for sending address, \"receive\" for receiving address)\n },\n ...\n}\n\nExamples:\n> bitcoin-cli getaddressesbylabel \"tabby\"\n> curl --user myusername --data-binary '{\"jsonrpc\": \"1.0\", \"id\": \"curltest\", \"method\": \"getaddressesbylabel\", \"params\": [\"tabby\"]}' -H 'content-type: text/plain;' http://127.0.0.1:8332/\n"
},
"id": 1
}