heidr TypeDocs - v0.0.7
    Preparing search index...

    Function getChain

    • Gets a chain by name or defaults to mainnet

      Parameters

      • OptionalchainName: string

        Name of the chain (supports camelCase, lowercase, or kebab-case)

      Returns Chain

      The chain configuration

      If chain name is not supported

      getChain('mainnet') // Ethereum mainnet
      getChain('arbitrum') // Arbitrum One
      getChain('polygon-zkevm') // Polygon zkEVM