x402-chainlink
    Preparing search index...

    Function getNetworkFromChainId

    • Get network identifier from chain ID

      Parameters

      • chainId: number

        The chain ID (numeric)

      Returns EVMNetworkId

      Network identifier in CAIP-2 format

      Error if chain ID is not recognized

      const network = getNetworkFromChainId(8453);
      console.log(network); // 'eip155:8453'