bitcoin-cli-ts
Version:
Auto-generated Bitcoin client library for bitcoind JSON-RPC API
29 lines (28 loc) • 1.63 kB
JavaScript
;
// Auto synced from github actions. Don't change this file
Object.defineProperty(exports, "__esModule", { value: true });
exports.fundRawTransaction = void 0;
var tslib_1 = require("tslib");
var rpc_request_1 = tslib_1.__importDefault(require("../../rpc-request"));
/**
* fundrawtransaction "hexstring" ( options iswitness )
*
* If the transaction has no inputs, they will be automatically selected to meet its out value.
* It will add at most one change output to the outputs.
* No existing outputs will be modified unless "subtractFeeFromOutputs" is specified.
* Note that inputs which were signed may need to be resigned after completion since in/outputs have been added.
* The inputs added will not be signed, use signrawtransactionwithkey
* or signrawtransactionwithwallet for that.
* 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.
* Note that all inputs selected must be of standard form and P2SH scripts must be
* in the wallet using importaddress or addmultisigaddress (to calculate fees).
* You can see whether this is the case by checking the "solvable" field in the listunspent output.
* Only pay-to-pubkey, multisig, and P2SH versions thereof are currently supported for watch-only
*
*/
function fundRawTransaction(params) {
var bitcoind = params.bitcoind, methodParams = tslib_1.__rest(params, ["bitcoind"]);
return (0, rpc_request_1.default)({ method: 'fundrawtransaction', params: methodParams }, bitcoind);
}
exports.fundRawTransaction = fundRawTransaction;