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

x/bitcoin_rpc/mod.ts>default#importmulti

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

Import addresses/scripts (with private or public keys, redeem script (P2SH)), optionally rescanning the blockchain from the earliest creation time of the imported scripts. Requires a new wallet backup. https://developer.bitcoin.org/reference/rpc/importmulti.html

Parameters

requests: Array<{ desc: string; scriptPubKey?: string | object; timestamp: number | string; redeemscript?: string; witnessscript?: string; pubkeys?: Array<string>; keys?: Array<string>; }>
optional
options: { rescan: boolean; }