@vafanassieff/bitcoin-cli-ts
Version:
Auto-generated Bitcoin client library for bitcoind JSON-RPC API
27 lines • 1.4 kB
TypeScript
import { Bitcoind, Json } from '../../types.js';
type FundRawTransactionParams = {
bitcoind: Bitcoind;
hexstring: string;
options?: Json;
iswitness?: boolean;
};
/**
* 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 declare function fundRawTransaction(params: FundRawTransactionParams): Promise<any>;
export {};
//# sourceMappingURL=fund-raw-transaction.d.ts.map