Skip to main content
The Deno 2 Release Candidate is here
Learn more
Latest
method default.prototype.signrawtransactionwithkey
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/signrawtransactionwithkey.html

Parameters

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