@ethereumjs/common / createCustomCommon
createCustomCommon(
partialConfig,baseChain,opts):Common
Defined in: common/src/constructors.ts:22
Creates a Common object for a custom chain, based on a standard one.
It uses all the Chain parameters from the baseChain option except the ones overridden in a provided chainParamsOrName dictionary. Some usage example:
import { createCustomCommon, Mainnet } from '@ethereumjs/common'
createCustomCommon({chainId: 123}, Mainnet)Partial<ChainConfig>
Custom parameter dict
ChainConfig chain configuration taken as a base chain, e.g. Mainnet (exported at root level)
BaseOpts = {}
Custom chain options to set various BaseOpts