getBlockNumber

Get the latest block number from a given network.

Example

const block = await getBlockNumber({
network: "ethereum",
});
function getBlockNumber(params: SharedBlockParams): Promise<number>;

Parameters

Type

let params: SharedBlockParams;

Returns

let returnType: Promise<number>;

The latest block number