ТарифыGitHubКабинет

Bitcoin

deriveaddressesКредиты: 15

Returns addresses corresponding to an output descriptor

Сеть: bitcoin

Параметры

ИмяТипОписание
descriptorstringOutput descriptor, including its checksum (use getdescriptorinfo to obtain it).
rangenumber | number[]For ranged descriptors: the end index or a [begin, end] range to derive. (необязательно)

Результат

Тип

string[]

Derived addresses.

Примеры кода

curl https://holy-burned-sky-bitcoin-mainnet.rpcnode.dev/7c9e6679-7425-40de-944b-e07fc1f90ae7 \
  -X POST \
  -H 'content-type: application/json' \
  -d '{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "deriveaddresses",
  "params": [
    "wpkh([d34db33f/84h/0h/0h]xpub6DJ2dNUysrn5Vt36jH2KLBT2i1auw1tTSSomg8PhqNiUtx8QX2SvC9nrHu81fT41fvDUnhMjEzQgXnQjKEu3oaqMSzhSrHMxyyoEAmUHQbY/0/*)#cjjspncu",
    [
      0,
      2
    ]
  ]
}'