getBlock

Get a specific block from a given network.

Example

const block = await getBlock({
network: "ethereum",
block: 12345678,
});
function getBlock(params: GetBlockParams): Promise<Block>;

Parameters

Type

let params: GetBlockParams;

Returns

let returnType: Promise<Block>;

The block for the given block number / block tag