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

x/bitcoin_rpc/mod.ts>default#createpsbt

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

Creates a transaction in the Partially Signed Transaction format. https://developer.bitcoin.org/reference/rpc/createpsbt.html

Parameters

inputs: Array<{ txid: string; vout?: number; sequence?: number; }>
outputs: Array<{ address: number; } | { address: string; } | { data: string; }>
optional
locktime: number
optional
replaceable: boolean