btg

Bitcoin Gold (BTG)

Method: POST deriveaddresses

dropdown

POST deriveaddresses

Derives one or more addresses corresponding to an output descriptor.

In the above, pubkey either refers to a fixed public key in hexadecimal notation, or to an xpub/xprv optionally followed by one or more path elements separated by "/", where "h" represents a hardened child key.

For more information on output descriptors, see the documentation in the doc/descriptors.md file.

Parameters

descriptor - string, required

The descriptor.

range - numeric or array, optional

If a ranged descriptor is used, this specifies the end or the range (in [begin,end] notation) to derive.

Request

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


Response

{
    "error": null,
    "id": "getblock.io",
    "result": null
}