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

x/bitcoin_rpc/mod.ts>default#getblocktemplate

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

If the request parameters include a ‘mode’ key, that is used to explicitly select between the default ‘template’ request or a ‘proposal’. https://developer.bitcoin.org/reference/rpc/getblocktemplate.html

Parameters

template_request: { mode?: string; capabilities?: Array<string>; }