getChainId

Calls the "getChainId" function on the contract.

Example

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

Parameters

The options for the getChainId function.

Type

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

Returns

let returnType: Promise<bigint>;

The parsed result of the function call.