Skip to content

getNetworkFromChainId

function getNetworkFromChainId(chainId: string | number): "mainnet" | "testnet";

Defined in: packages/iso-filecoin/src/utils.js:85

Get network from any chain designation

Parameters

ParameterType
chainIdstring | number

Returns

"mainnet" | "testnet"