Skip to main content
The Deno 2 Release Candidate is here
Learn more
Latest
method default.prototype.signrawtransactionwithwallet
import { default } from "https://deno.land/x/bitcoin_rpc@v1.0.3/mod.ts";

Sign inputs for raw transaction (serialized, hex-encoded). https://developer.bitcoin.org/reference/rpc/signrawtransactionwithwallet.html

Parameters

hexstring: string
prevtxs: Array<{ txid: string; vout: number; scriptPubKey: string; redeemScript?: string; witnessScript?: string; amount: number | string; }>
sighashtype: string