x402-chainlink
    Preparing search index...

    Function getChainIdFromNetwork

    • Get chain ID from network identifier

      Parameters

      • network: EVMNetworkId

        The network identifier (CAIP-2 format)

      Returns number

      Chain ID (numeric)

      const chainId = getChainIdFromNetwork('eip155:8453');
      console.log(chainId); // 8453