Table of contents
Chain Functions
Chain Functions
toEnvironmentName
▸ toEnvironmentName(chainNameOrId): SpaceportChainType
Helper function to safely convert a chain name from utils/chain to a valid environment name
Parameters
Returns
SpaceportChainType
getChainId
▸ getChainId(chain): number
Get the numeric chain ID from a SpaceportChainType name
Parameters
Returns
number
Chain ID as a number
getChainName
▸ getChainName(chainId): string
Get the chain name from a chain ID
Parameters
Returns
string
Chain name
createChainConfig
▸ createChainConfig(chainName): Object
Create a chain configuration for the given environment
Parameters
Returns
Object
Chain configuration

