Bitcoin
deriveaddresses15 额度
Returns addresses corresponding to an output descriptor
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| descriptor | string | Output descriptor, including its checksum (use getdescriptorinfo to obtain it). |
| range | number | 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
]
]
}'