BTG
POST
GET
Last updated on January 1, 1970
1 min read
Method deriveaddresses undefined ()
connect with JSON-RPC protocol
deriveaddresses
Derives one or more addresses corresponding to an output descriptor.In the above, pubkey either refers to a fixed public key in hexadecimalnotation, or to an xpub/xprv optionally followed by one or more pathelements separated by /, where h represents a hardened child key.For more information on output descriptors, see the documentation in thedoc/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
}
Start Building with GetBlock RPCs for Free
Previous
{ "overview": "Overview", "guides": "Guides", "get-started": "Get Started", "rpc-service": "Nodes Methods", "getblock-explorer": "Explorer API", "getblock-tracker": "Tracker API", "nodes-endpoints": "Nodes Endpoints" }
Next
{ "overview": "Overview", "guides": "Guides", "get-started": "Get Started", "rpc-service": "Nodes Methods", "getblock-explorer": "Explorer API", "getblock-tracker": "Tracker API", "nodes-endpoints": "Nodes Endpoints" }