UNPKG

bitcoin-cli-ts

Version:

Auto-generated Bitcoin client library for bitcoind JSON-RPC API

28 lines (27 loc) 1.59 kB
"use strict"; // Auto synced from github actions. Don't change this file Object.defineProperty(exports, "__esModule", { value: true }); exports.deriveAddresses = void 0; var tslib_1 = require("tslib"); var rpc_request_1 = tslib_1.__importDefault(require("../../rpc-request")); /** * deriveaddresses "descriptor" ( range ) * * Derives one or more addresses corresponding to an output descriptor. * Examples of output descriptors are: * pkh(<pubkey>) P2PKH outputs for the given pubkey * wpkh(<pubkey>) Native segwit P2PKH outputs for the given pubkey * sh(multi(<n>,<pubkey>,<pubkey>,...)) P2SH-multisig outputs for the given threshold and pubkeys * raw(<hex script>) Outputs whose output script equals the specified hex-encoded bytes * tr(<pubkey>,multi_a(<n>,<pubkey>,<pubkey>,...)) P2TR-multisig outputs for the given threshold and pubkeys * * In the above, <pubkey> either refers to a fixed public key in hexadecimal notation, or to an xpub/xprv optionally followed by one * or more path elements separated by "/", where "h" represents a hardened child key. * For more information on output descriptors, see the documentation in the doc/descriptors.md file. * */ function deriveAddresses(params) { var bitcoind = params.bitcoind, methodParams = tslib_1.__rest(params, ["bitcoind"]); return (0, rpc_request_1.default)({ method: 'deriveaddresses', params: methodParams }, bitcoind); } exports.deriveAddresses = deriveAddresses;