@vafanassieff/bitcoin-cli-ts
Version:
Auto-generated Bitcoin client library for bitcoind JSON-RPC API
24 lines • 1.4 kB
JavaScript
// Auto synced from github actions. Don't change this file
import request from '../../rpc-request.js';
/**
* 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) {
const { bitcoind, ...methodParams } = params;
return request({ method: 'fundrawtransaction', params: methodParams }, bitcoind);
}
//# sourceMappingURL=fund-raw-transaction.js.map