Skip to content

Latest commit

 

History

History
113 lines (65 loc) · 2.96 KB

File metadata and controls

113 lines (65 loc) · 2.96 KB

@ethereumjs/common


@ethereumjs/common / GethConfigOpts

Interface: GethConfigOpts

Defined in: common/src/types.ts:152

Extends

Properties

chain?

optional chain: string

Defined in: common/src/types.ts:153


customCrypto?

optional customCrypto: CustomCrypto

Defined in: common/src/types.ts:138

This option can be used to replace the most common crypto primitives (keccak256 hashing e.g.) within the EthereumJS ecosystem libraries with alternative implementations (e.g. more performant WASM libraries).

Note: please be aware that this is adding new dependencies for your system setup to be used for sensitive/core parts of the functionality and a choice on the libraries to add should be handled with care and be made with eventual security implications considered.

Inherited from

BaseOpts.customCrypto


eips?

optional eips: number[]

Defined in: common/src/types.ts:109

Selected EIPs which can be activated, please use an array for instantiation (e.g. eips: [ 2537, ])

Currently supported:

Inherited from

BaseOpts.eips


genesisHash?

optional genesisHash: Uint8Array<ArrayBufferLike>

Defined in: common/src/types.ts:154


hardfork?

optional hardfork: string

Defined in: common/src/types.ts:100

String identifier ('byzantium') for hardfork or Hardfork enum.

Default: Hardfork.London

Inherited from

BaseOpts.hardfork


params?

optional params: ParamsDict

Defined in: common/src/types.ts:127

Optionally pass in an EIP params dictionary, see one of the EthereumJS library params.ts files for an example (e.g. tx, evm). By default parameters are set by the respective library, so this is only relevant if you want to use EthereumJS libraries with a custom parameter set.

Example Format:

{
  1559: {
    initialBaseFee: 1000000000,
  }
}

Inherited from

BaseOpts.params