UNPKG

bitcoin-cli-ts

Version:

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

34 lines (33 loc) 2.1 kB
"use strict"; // Auto synced from github actions. Don't change this file Object.defineProperty(exports, "__esModule", { value: true }); exports.scanTxOutset = void 0; var tslib_1 = require("tslib"); var rpc_request_1 = tslib_1.__importDefault(require("../../rpc-request")); /** * scantxoutset "action" ( [scanobjects,...] ) * * Scans the unspent transaction output set for entries that match certain output descriptors. * Examples of output descriptors are: * addr(<address>) Outputs whose output script corresponds to the specified address (does not include P2PK) * raw(<hex script>) Outputs whose output script equals the specified hex-encoded bytes * combo(<pubkey>) P2PK, P2PKH, P2WPKH, and P2SH-P2WPKH outputs for the given pubkey * pkh(<pubkey>) P2PKH outputs for the given pubkey * sh(multi(<n>,<pubkey>,<pubkey>,...)) P2SH-multisig outputs for the given threshold and pubkeys * tr(<pubkey>) P2TR * tr(<pubkey>,{pk(<pubkey>)}) P2TR with single fallback pubkey in tapscript * rawtr(<pubkey>) P2TR with the specified key as output key rather than inner * wsh(and_v(v:pk(<pubkey>),after(2))) P2WSH miniscript with mandatory pubkey and a timelock * * 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 "/", and optionally ending in "/*" (unhardened), or "/*'" or "/*h" (hardened) to specify all * unhardened or hardened child keys. * In the latter case, a range needs to be specified by below if different from 1000. * For more information on output descriptors, see the documentation in the doc/descriptors.md file. * */ function scanTxOutset(params) { var bitcoind = params.bitcoind, methodParams = tslib_1.__rest(params, ["bitcoind"]); return (0, rpc_request_1.default)({ method: 'scantxoutset', params: methodParams }, bitcoind); } exports.scanTxOutset = scanTxOutset;