bitcoin-cli-ts
Version:
Auto-generated Bitcoin client library for bitcoind JSON-RPC API
25 lines (24 loc) • 1.41 kB
JavaScript
// Auto synced from github actions. Don't change this file
import { __rest } from "tslib";
import request from '../../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
*
*/
export function fundRawTransaction(params) {
var bitcoind = params.bitcoind, methodParams = __rest(params, ["bitcoind"]);
return request({ method: 'fundrawtransaction', params: methodParams }, bitcoind);
}