Skip to content

networkNames

A mapping of chain IDs to their corresponding network name strings.

Usage

import { networkNames } from '@ethereum-tag-service/contracts'
 
const name = networkNames['421614']
console.log(name)
Output: "arbitrumsepolia"

Returns

{ [K in SupportedChainId]: string }

An object mapping chain IDs to network names.

Properties

Chain ID Keys

  • Type: SupportedChainId
  • Values:
    • "421614": "arbitrumsepolia"
    • "84532": "basesepolia"
    • "31337": "hardhat"

Examples

import { networkNames } from '@ethereum-tag-service/contracts'
 
// Get network name for Arbitrum Sepolia
const arbitrumName = networkNames['421614']
console.log(arbitrumName)
Output: "arbitrumsepolia"
// Get network name for Base Sepolia const baseName = networkNames['84532'] console.log(baseName)
Output: "basesepolia"