Function: getChain()
getChain(
chainId:number):string
This will resolve the chainId number to the corresponding chain name.
Parameters
| Parameter | Type | Description | 
|---|---|---|
chainId | number | The chainId of the network | 
Returns
string
chain name
Example
getChain(1) // 'ethereum'
getChain(11155111) // 'sepolia'
getChain(100) // 'gnosis'
getChain(10200) // 'chiado'
getChain(137) // 'polygon'
getChain(80002) // 'amoy'