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

x/bitcoin_rpc/mod.ts>default#importaddress

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

Adds an address or script (in hex) that can be watched as if it were in your wallet but cannot be used to spend. Requires a new wallet backup. https://developer.bitcoin.org/reference/rpc/importaddress.html

Parameters

address: string
optional
label: string
optional
rescan: boolean
optional
p2sh: string