MCPcopy Create free account
hub / github.com/api3dao/airnode / readChainId

Function readChainId

packages/airnode-examples/src/evm.ts:131–134  ·  view source on GitHub ↗
(chain = SameOrCrossChain.same)

Source from the content-addressed store, hash-verified

129 * @returns The chain id of the chosen network
130 */
131export const readChainId = async (chain = SameOrCrossChain.same) => {
132 const network = await getProvider(chain).getNetwork();
133 return network.chainId;
134};

Callers 1

getChainIdFunction · 0.90

Calls 1

getProviderFunction · 0.85

Tested by

no test coverage detected