Skip to main content

Function: parseChain()

parseChain(chain: string | number): string

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

Parameters

ParameterTypeDescription
chainstring | numberThe chainId of the network

Returns

string

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

Defined in

utils.ts:86