⚡ Access Enhanced: 200 RPS Now Available for Customers of Shared Nodes with Access Tokens

dgb

DigiByte

DGB

POST

GET

chevron-right

Last updated on January 1, 1970

1 min read

Method deriveaddresses DigiByte (DGB)
connect with JSON-RPC protocol

deriveaddresses

info-circle-fill

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://dgb.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
}