@ethereumjs/common
Ƭ AccessList: AccessListItem[]
Ƭ AccessListBytes: AccessListBytesItem[]
Ƭ AccessListBytesItem: [Uint8Array, Uint8Array[]]
Ƭ AccessListItem: Object
| Name | Type |
|---|---|
address |
PrefixedHexString |
storageKeys |
PrefixedHexString[] |
Ƭ AccountFields: Partial<Pick<Account, "nonce" | "balance" | "storageRoot" | "codeHash">>
Ƭ CasperConfig: Object
Ƭ CliqueConfig: Object
| Name | Type |
|---|---|
epoch |
number |
period |
number |
Ƭ EIPConfig: { minimumHardfork: Hardfork ; requiredEIPs: number[] } & EIPOrHFConfig
Ƭ EIPOrHFConfig: Object
| Name | Type |
|---|---|
comment |
string |
gasConfig? |
{ [key: string]: ParamDict; } |
gasPrices? |
{ [key: string]: ParamDict; } |
pow? |
{ [key: string]: ParamDict; } |
sharding? |
{ [key: string]: ParamDict; } |
status |
string |
url |
string |
vm? |
{ [key: string]: ParamDict; } |
Ƭ EthashConfig: Object
Ƭ HardforkConfig: { consensus?: ConsensusConfig ; eips?: number[] ; name: string } & EIPOrHFConfig
Ƭ HardforksDict: Object
▪ [key: string]: HardforkConfig
Ƭ Proof: Object
| Name | Type |
|---|---|
accountProof |
PrefixedHexString[] |
address |
PrefixedHexString |
balance |
PrefixedHexString |
codeHash |
PrefixedHexString |
nonce |
PrefixedHexString |
storageHash |
PrefixedHexString |
storageProof |
StorageProof[] |
Ƭ StorageProof: Object
| Name | Type |
|---|---|
key |
PrefixedHexString |
proof |
PrefixedHexString[] |
value |
PrefixedHexString |
• Const ChainGenesis: Record<Chain, GenesisState>
GenesisState info about well known ethereum chains
▸ 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: string ; excessBlobGas: string ; extraData: string ; gasLimit: string ; mixHash: string ; nonce: string ; timestamp: string } |
genesis.baseFeePerGas |
string |
genesis.coinbase |
string |
genesis.difficulty |
string |
genesis.excessBlobGas |
string |
genesis.extraData |
string |
genesis.gasLimit |
string |
genesis.mixHash |
string |
genesis.nonce |
string |
genesis.timestamp |
string |
hardfork |
undefined | string |
hardforks |
ConfigHardfork[] |
name |
string |
networkId |
number |