getBlockNumber

Calls the "getBlockNumber" function on the contract.

Example

import { getBlockNumber } from "thirdweb/extensions/multicall3";
const result = await getBlockNumber({
contract,
});
function getBlockNumber(
): Promise<bigint>;

Parameters

The options for the getBlockNumber function.

Type

let options: { contract: ThirdwebContract<abi> } & T;

Returns

let returnType: Promise<bigint>;

The parsed result of the function call.