PreciosGitHubPanel

Litecoin

deriveaddresses15 créditos

Returns addresses corresponding to an output descriptor

Red: litecoin

Parámetros

NombreTipoDescripción
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. (opcional)

Valor devuelto

Tipo

string[]

Derived addresses.

Ejemplos de código

curl https://holy-burned-sky-litecoin-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
    ]
  ]
}'