ethereumjs-monorepo

@ethereumjs/common


@ethereumjs/common / getPresetChainConfig

Function: getPresetChainConfig()

getPresetChainConfig(chain): ChainConfig

Defined in: common/src/utils.ts:308

Return the preset chain config for one of the predefined chain configurations

Parameters

chain

the representing a network name (e.g. ‘mainnet’) or number representing the chain ID

string number

Returns

ChainConfig

a ChainConfig