@ethereumjs/common / parseGethGenesis
parseGethGenesis(
gethGenesis,name?):object
Defined in: common/src/utils.ts:281
Parses a genesis object exported from Geth into parameters for Common instance
GethGenesis object
string
optional chain name
object
parsed params
bootstrapNodes:
never[] =[]
chainId:
number
consensus: {
algorithm:string;clique: {epoch:number|undefined;period:number|undefined; };ethash?:undefined;type:string; } | {algorithm:string;clique?:undefined;ethash: { };type:string; }
customHardforks:
HardforksDict|undefined
depositContractAddress:
string|undefined
genesis:
object
baseFeePerGas:
number|`0x${string}`|null|undefined
coinbase:
`0x${string}`|undefined
difficulty:
`0x${string}`|undefined
excessBlobGas:
string|undefined
extraData:
`0x${string}`
gasLimit:
`0x${string}`
mixHash:
`0x${string}`|undefined
nonce:
`0x${string}`
requestsHash:
string|undefined
timestamp:
`0x${string}`
hardfork:
string|undefined
hardforks:
ConfigHardfork[]
name:
string|undefined