Hook that watches for changes in the block number on a given chain.
import { useBlockNumber } from "thirdweb/react";const blockNumber = useBlockNumber({ client, chain });
function useBlockNumber( options: UseBlockNumberOptions,): undefined | bigint;
The options for the hook.
let options: { chain: Chain; client: ThirdwebClient; enabled?: boolean; watch?: boolean;};
let returnType: undefined | bigint;
The latest block number.