@ethereumjs/common
- BootstrapNodeConfig
- ChainConfig
- ChainName
- ChainsConfig
- CommonOpts
- CustomCommonOpts
- GenesisBlockConfig
- GethConfigOpts
- HardforkConfig
Ƭ CasperConfig: Object
packages/common/src/types.ts:17
Ƭ CliqueConfig: Object
Name | Type |
---|---|
epoch |
number |
period |
number |
packages/common/src/types.ts:10
Ƭ EthashConfig: Object
packages/common/src/types.ts:15
▸ parseGethGenesis(json
, name?
, mergeForkIdPostMerge?
): Object
Parses a genesis.json exported from Geth into parameters for Common instance
Name | Type | Description |
---|---|---|
json |
any |
representing the Geth genesis file |
name? |
string |
optional chain name |
mergeForkIdPostMerge? |
boolean |
- |
Object
parsed params
Name | Type |
---|---|
bootstrapNodes |
never [] |
chainId |
number |
consensus |
{ algorithm : string = 'clique'; clique : { epoch : any ; period : any } ; ethash : undefined = {}; type : string = 'poa' } | { algorithm : string = 'ethash'; clique : undefined ; ethash : {} = {}; type : string = 'pow' } |
genesis |
{ baseFeePerGas : string ; coinbase : string ; difficulty : number ; extraData : string ; gasLimit : number ; mixHash : string ; nonce : string ; timestamp : string } |
genesis.baseFeePerGas |
string |
genesis.coinbase |
string |
genesis.difficulty |
number |
genesis.extraData |
string |
genesis.gasLimit |
number |
genesis.mixHash |
string |
genesis.nonce |
string |
genesis.timestamp |
string |
hardfork |
undefined | string |
hardforks |
ConfigHardfork [] |
name |
string |
networkId |
number |