@vafanassieff/bitcoin-cli-ts
Version:
Auto-generated Bitcoin client library for bitcoind JSON-RPC API
16 lines • 717 B
JavaScript
// Auto synced from github actions. Don't change this file
import request from '../../rpc-request.js';
/**
* finalizepsbt "psbt" ( extract )
*
* Finalize the inputs of a PSBT. If the transaction is fully signed, it will produce a
* network serialized transaction which can be broadcast with sendrawtransaction. Otherwise a PSBT will be
* created which has the final_scriptSig and final_scriptWitness fields filled for inputs that are complete.
* Implements the Finalizer and Extractor roles.
*
*/
export function finalizePsbt(params) {
const { bitcoind, ...methodParams } = params;
return request({ method: 'finalizepsbt', params: methodParams }, bitcoind);
}
//# sourceMappingURL=finalize-psbt.js.map