UNPKG

bitcoin-cli-ts

Version:

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

26 lines (25 loc) 1.36 kB
"use strict"; // Auto synced from github actions. Don't change this file Object.defineProperty(exports, "__esModule", { value: true }); exports.lockUnspent = void 0; var tslib_1 = require("tslib"); var rpc_request_1 = tslib_1.__importDefault(require("../../rpc-request")); /** * lockunspent unlock ( [{"txid":"hex","vout":n},...] persistent ) * * Updates list of temporarily unspendable outputs. * Temporarily lock (unlock=false) or unlock (unlock=true) specified transaction outputs. * If no transaction outputs are specified when unlocking then all current locked transaction outputs are unlocked. * A locked transaction output will not be chosen by automatic coin selection, when spending bitcoins. * Manually selected coins are automatically unlocked. * Locks are stored in memory only, unless persistent=true, in which case they will be written to the * wallet database and loaded on node start. Unwritten (persistent=false) locks are always cleared * (by virtue of process exit) when a node stops or fails. Unlocking will clear both persistent and not. * Also see the listunspent call * */ function lockUnspent(params) { var bitcoind = params.bitcoind, methodParams = tslib_1.__rest(params, ["bitcoind"]); return (0, rpc_request_1.default)({ method: 'lockunspent', params: methodParams }, bitcoind); } exports.lockUnspent = lockUnspent;