Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/bitcoin_rpc/mod.ts>default#finalizepsbt

A Bitcoin RPC Module for Deno.
Latest
method default.prototype.finalizepsbt
import { default } from "https://deno.land/x/bitcoin_rpc@v1.0.3/mod.ts";

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. https://developer.bitcoin.org/reference/rpc/finalizepsbt.html

Parameters

psbt: string
optional
extract: boolean