Converts a chain ID to its corresponding chain name.
The numeric identifier of the blockchain network
The chain name if found, undefined otherwise
const chainName = chainIdToName(137); // Returns "Polygon"const chainName = chainIdToName(1); // Returns "Mainnet" Copy
const chainName = chainIdToName(137); // Returns "Polygon"const chainName = chainIdToName(1); // Returns "Mainnet"
Converts a chain ID to its corresponding chain name.