UNPKG

bitcoin-cli-ts

Version:

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

21 lines (20 loc) 1.05 kB
"use strict"; // Auto synced from github actions. Don't change this file Object.defineProperty(exports, "__esModule", { value: true }); exports.walletCreateFundedPsbt = void 0; var tslib_1 = require("tslib"); var rpc_request_1 = tslib_1.__importDefault(require("../../rpc-request")); /** * walletcreatefundedpsbt ( [{"txid":"hex","vout":n,"sequence":n,"weight":n},...] ) [{"address":amount,...},{"data":"hex"},...] ( locktime options bip32derivs ) * * Creates and funds a transaction in the Partially Signed Transaction format. * Implements the Creator and Updater roles. * All existing inputs must either have their previous output transaction be in the wallet * or be in the UTXO set. Solving data must be provided for non-wallet inputs. * */ function walletCreateFundedPsbt(params) { var bitcoind = params.bitcoind, methodParams = tslib_1.__rest(params, ["bitcoind"]); return (0, rpc_request_1.default)({ method: 'walletcreatefundedpsbt', params: methodParams }, bitcoind); } exports.walletCreateFundedPsbt = walletCreateFundedPsbt;