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

x/bitcoin_rpc/mod.ts>default#generatetoaddress

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

Mine blocks immediately to a specified address (before the RPC call returns) https://developer.bitcoin.org/reference/rpc/generatetoaddress.html

Parameters

nblocks: number
address: string
optional
maxtries: number