Skip to main content

Function: parseChain()

parseChain(chain: Chain | ChainId): Chain

This will resolve the chainId number to the corresponding chain name.

Parameters

ParameterTypeDescription
chainChain | ChainIdThe chainId of the network

Returns

Chain

chain name, 'ethereum', 'polygon', 'gnosis', etc.