@ethereumjs/client / ConfigOptions
Defined in: config.ts:32
optional
accountCache:number
Defined in: config.ts:195
Size for the account cache (max number of accounts)
optional
accounts: [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: []
optional
blobsAndProofsCacheBlocks:number
Defined in: config.ts:342
The cache for blobs and proofs to support CL import blocks
optional
bootnodes: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)
optional
codeCache:number
Defined in: config.ts:205
Size for the code cache (max number of contracts)
optional
common: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
optional
datadir:string
Defined in: config.ts:79
Root data directory for the blockchain
optional
debugCode: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)
optional
discDns:boolean
Defined in: config.ts:226
Query EIP-1459 DNS TXT records for peer discovery
Default: true
for testnets, false for mainnet
optional
discV4:boolean
Defined in: config.ts:233
Use v4 (“findneighbour” node requests) for peer discovery
Default: false
for testnets, true for mainnet
optional
dnsAddr:string
Defined in: config.ts:175
DNS server to query DNS TXT records from for peer discovery
Default 8.8.8.8
(Google)
optional
dnsNetworks:string
[]
Defined in: config.ts:180
EIP-1459 ENR Tree urls to query via DNS for peer discovery
optional
enableSnapSync:boolean
Defined in: config.ts:53
Whether to enable and run snapSync, currently experimental
Default: false
optional
engineNewpayloadMaxExecute:number
Defined in: config.ts:309
Max blocks including unexecuted parents to be executed in engine’s newPayload
optional
engineNewpayloadMaxTxsExecute:number
Defined in: config.ts:314
Limit max transactions per block to execute in engine’s newPayload for responsive engine api
optional
engineParentLookupMaxDepth:number
Defined in: config.ts:304
Max depth for parent lookups in engine’s newPayload and forkchoiceUpdated
optional
execution:boolean
Defined in: config.ts:185
Start continuous VM execution (pre-Merge setting)
optional
extIP:string
Defined in: config.ts:104
RLPx external IP
optional
ignoreStatelessInvalidExecs:boolean
Defined in: config.ts:337
optional
isSingleNode:boolean
Defined in: config.ts:247
Is a single node and doesn’t need peers for synchronization
Default: false
optional
key: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.
optional
logger: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’
optional
maxAccountRange:bigint
Defined in: config.ts:295
optional
maxFetcherJobs:number
Defined in: config.ts:149
Max jobs to be enqueued in the fetcher at any given time
Default: 100
optional
maxFetcherRequests:number
Defined in: config.ts:154
Max outgoing multi-peer requests by the fetcher at any given time
optional
maxInvalidBlocksErrorCache:number
Defined in: config.ts:321
Cache size of invalid block hashes and their errors
optional
maxPeers:number
Defined in: config.ts:168
Maximum peers allowed
Default: 25
optional
maxPerRequest:number
Defined in: config.ts:142
Max items per block or header request
Default: 100
optional
maxRangeBytes:number
Defined in: config.ts:293
optional
maxStorageRange:bigint
Defined in: config.ts:316
optional
mine:boolean
Defined in: config.ts:240
Enable mining
Default: false
optional
minerCoinbase:Address
Defined in: config.ts:271
Address for mining rewards (etherbase) If not provided, defaults to the primary account.
optional
minPeers:number
Defined in: config.ts:161
Number of peers needed before syncing
Default: 1
optional
multiaddrs:Multiaddr
[]
Defined in: config.ts:110
Network multiaddrs for libp2p (e.g. /ip4/127.0.0.1/tcp/50505/p2p/QmABC)
optional
numBlocksPerIteration:number
Defined in: config.ts:190
Number of blocks to execute in batch mode and logged to console
optional
port:number
Defined in: config.ts:99
RLPx listening port
Default: 30303
optional
prefixStorageTrieKeys: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
optional
prometheusMetrics:PrometheusMetrics
Defined in: config.ts:347
Enables Prometheus Metrics that can be collected for monitoring client health
optional
pruneEngineCache:boolean
Defined in: config.ts:322
optional
safeReorgDistance: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.
optional
savePreimages:boolean
Defined in: config.ts:329
Save account keys preimages in the meta db (default: false)
optional
saveReceipts:boolean
Defined in: config.ts:121
Save tx receipts and logs in the meta db (default: false)
optional
server:RlpxServer
Defined in: config.ts:116
Transport servers (RLPx) Only used for testing purposes
optional
skeletonFillCanonicalBackStep: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.
optional
skeletonSubchainMergeMinimum: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
optional
snapAvailabilityDepth:bigint
Defined in: config.ts:323
optional
snapTransitionSafeDepth:bigint
Defined in: config.ts:324
optional
startExecution:boolean
Defined in: config.ts:336
optional
statefulVerkle:boolean
Defined in: config.ts:335
optional
statelessVerkle:boolean
Defined in: config.ts:334
Enables stateless verkle block execution (default: false)
optional
storageCache:number
Defined in: config.ts:200
Size for the storage cache (max number of contracts)
optional
syncedStateRemovalPeriod:number
Defined in: config.ts:299
The time after which synced state is downgraded to unsynced
optional
syncmode:SyncMode
Defined in: config.ts:46
Synchronization mode (‘full’, ‘none’)
Default: ‘full’
optional
trieCache:number
Defined in: config.ts:210
Size for the trie cache (max number of trie nodes)
optional
txLookupLimit:number
Defined in: config.ts:127
Number of recent blocks to maintain transactions index for (default = 2350000 = about one year, 0 = entire chain)
optional
useStringValueTrieDB: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
optional
vm:VM
Defined in: config.ts:74
Provide a custom VM instance to process blocks
Default: VM instance created by client
optional
vmProfileBlocks:boolean
Defined in: config.ts:252
Whether to profile VM blocks
optional
vmProfileTxs:boolean
Defined in: config.ts:257
Whether to profile VM txs