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