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

x/bitcoin_rpc/mod.ts>default#getblock

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

If verbosity is 0, returns a string that is serialized, hex-encoded data for block ‘hash’. https://developer.bitcoin.org/reference/rpc/getblock.html

Parameters

blockhash: string
optional
verbosity: number