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