@ethereumjs/client / ConfigOptions
Defined in: config.ts:32
optionalaccountCache:number
Defined in: config.ts:195
Size for the account cache (max number of accounts)
optionalaccounts: [Address,Uint8Array<ArrayBufferLike>][]
Defined in: config.ts:265
Unlocked accounts of form [address, privateKey] Currently only the first account is used to seal mined PoA blocks
Default: []
optionalblobsAndProofsCacheBlocks:number
Defined in: config.ts:334
The cache for blobs and proofs to support CL import blocks
optionalbootnodes:Multiaddr[]
Defined in: config.ts:92
Network bootnodes (e.g. abc@18.138.108.67 or /ip4/127.0.0.1/tcp/50505/p2p/QmABC)
optionalcodeCache:number
Defined in: config.ts:205
Size for the code cache (max number of contracts)
optionalcommon:Common
Defined in: config.ts:39
Specify the chain by providing a Common instance, the common instance will not be modified by client
Default: ‘mainnet’ Common
optionaldatadir:string
Defined in: config.ts:79
Root data directory for the blockchain
optionaldebugCode:boolean
Defined in: config.ts:219
Generate code for local debugging, currently providing a code snippet which can be used to run blocks on the EthereumJS VM on execution errors
(meant to be used internally for the most part)
optionaldiscDns:boolean
Defined in: config.ts:226
Query EIP-1459 DNS TXT records for peer discovery
Default: true for testnets, false for mainnet
optionaldiscV4:boolean
Defined in: config.ts:233
Use v4 (“findneighbour” node requests) for peer discovery
Default: false for testnets, true for mainnet
optionaldnsAddr:string
Defined in: config.ts:175
DNS server to query DNS TXT records from for peer discovery
Default 8.8.8.8 (Google)
optionaldnsNetworks:string[]
Defined in: config.ts:180
EIP-1459 ENR Tree urls to query via DNS for peer discovery
optionalenableSnapSync:boolean
Defined in: config.ts:53
Whether to enable and run snapSync, currently experimental
Default: false
optionalengineNewpayloadMaxExecute:number
Defined in: config.ts:309
Max blocks including unexecuted parents to be executed in engine’s newPayload
optionalengineNewpayloadMaxTxsExecute:number
Defined in: config.ts:314
Limit max transactions per block to execute in engine’s newPayload for responsive engine api
optionalengineParentLookupMaxDepth:number
Defined in: config.ts:304
Max depth for parent lookups in engine’s newPayload and forkchoiceUpdated
optionalexecution:boolean
Defined in: config.ts:185
Start continuous VM execution (pre-Merge setting)
optionalextIP:string
Defined in: config.ts:104
RLPx external IP
optionalisSingleNode:boolean
Defined in: config.ts:247
Is a single node and doesn’t need peers for synchronization
Default: false
optionalkey:Uint8Array<ArrayBufferLike>
Defined in: config.ts:86
Private key for the client. Use return value of Config.getClientKey. If left blank, a random key will be generated and used.
optionallogger:Logger
Defined in: config.ts:135
A custom winston logger can be provided if setting logging verbosity is not sufficient
Default: Logger with loglevel ‘info’
optionalmaxAccountRange:bigint
Defined in: config.ts:295
optionalmaxFetcherJobs:number
Defined in: config.ts:149
Max jobs to be enqueued in the fetcher at any given time
Default: 100
optionalmaxFetcherRequests:number
Defined in: config.ts:154
Max outgoing multi-peer requests by the fetcher at any given time
optionalmaxInvalidBlocksErrorCache:number
Defined in: config.ts:321
Cache size of invalid block hashes and their errors
optionalmaxPeers:number
Defined in: config.ts:168
Maximum peers allowed
Default: 25
optionalmaxPerRequest:number
Defined in: config.ts:142
Max items per block or header request
Default: 100
optionalmaxRangeBytes:number
Defined in: config.ts:293
optionalmaxStorageRange:bigint
Defined in: config.ts:316
optionalmine:boolean
Defined in: config.ts:240
Enable mining
Default: false
optionalminerCoinbase:Address
Defined in: config.ts:271
Address for mining rewards (etherbase) If not provided, defaults to the primary account.
optionalminPeers:number
Defined in: config.ts:161
Number of peers needed before syncing
Default: 1
optionalmultiaddrs:Multiaddr[]
Defined in: config.ts:110
Network multiaddrs for libp2p (e.g. /ip4/127.0.0.1/tcp/50505/p2p/QmABC)
optionalnumBlocksPerIteration:number
Defined in: config.ts:190
Number of blocks to execute in batch mode and logged to console
optionalport:number
Defined in: config.ts:99
RLPx listening port
Default: 30303
optionalprefixStorageTrieKeys:boolean
Defined in: config.ts:61
A temporary option to offer backward compatibility with already-synced databases that are using non-prefixed keys for storage tries
Default: true
optionalprometheusMetrics:PrometheusMetrics
Defined in: config.ts:339
Enables Prometheus Metrics that can be collected for monitoring client health
optionalpruneEngineCache:boolean
Defined in: config.ts:322
optionalsafeReorgDistance:number
Defined in: config.ts:277
If there is a reorg, this is a safe distance from which to try to refetch and re-feed the blocks.
optionalsavePreimages:boolean
Defined in: config.ts:329
Save account keys preimages in the meta db (default: false)
optionalsaveReceipts:boolean
Defined in: config.ts:121
Save tx receipts and logs in the meta db (default: false)
optionalserver:RlpxServer
Defined in: config.ts:116
Transport servers (RLPx) Only used for testing purposes
optionalskeletonFillCanonicalBackStep:number
Defined in: config.ts:284
If there is a skeleton fillCanonicalChain block lookup errors because of closing chain conditions, this allows skeleton to backstep and fill again using reverse block fetcher.
optionalskeletonSubchainMergeMinimum:number
Defined in: config.ts:291
If skeleton subchains can be merged, what is the minimum tail gain, as subchain merge will lead to the ReverseBlockFetcher reset
optionalsnapAvailabilityDepth:bigint
Defined in: config.ts:323
optionalsnapTransitionSafeDepth:bigint
Defined in: config.ts:324
optionalstorageCache:number
Defined in: config.ts:200
Size for the storage cache (max number of contracts)
optionalsyncedStateRemovalPeriod:number
Defined in: config.ts:299
The time after which synced state is downgraded to unsynced
optionalsyncmode:SyncMode
Defined in: config.ts:46
Synchronization mode (‘full’, ‘none’)
Default: ‘full’
optionaltrieCache:number
Defined in: config.ts:210
Size for the trie cache (max number of trie nodes)
optionaltxLookupLimit:number
Defined in: config.ts:127
Number of recent blocks to maintain transactions index for (default = 2350000 = about one year, 0 = entire chain)
optionaluseStringValueTrieDB:boolean
Defined in: config.ts:67
A temporary option to offer backward compatibility with already-synced databases that stores
trie items as string, instead of the more performant Uint8Array
optionalvm:VM
Defined in: config.ts:74
Provide a custom VM instance to process blocks
Default: VM instance created by client
optionalvmProfileBlocks:boolean
Defined in: config.ts:252
Whether to profile VM blocks
optionalvmProfileTxs:boolean
Defined in: config.ts:257
Whether to profile VM txs