btc

Bitcoin (BTC)

Method: POST setlabel

dropdown

POST setlabel

Method not allowed

Sets the label associated with the given address.

Parameters

address - string, required

The bitcoin address to be associated with a label.

label - string, required

The label to assign to the address.

Request

curl --location --request POST 'https://btc.getblock.io/mainnet/' 
--header 'x-api-key: YOUR-API-KEY' 
--header 'Content-Type: application/json' 
--data-raw '{"jsonrpc": "2.0",
"method": "setlabel",
"params": [null, null],
"id": "getblock.io"}'


Response

{
    "result": "null",
    "id": "getblock.io",
    "status_code": 405,
    "message": "Method not allowed"
}