@ethereumjs/client / Config
• new Config(options?
)
Name | Type |
---|---|
options |
ConfigOptions |
• Readonly
accountCache: number
• Readonly
accounts: [address: Address, privKey: Uint8Array][]
• Optional
Readonly
bootnodes: Multiaddr
[]
• Readonly
chainCommon: Common
• Readonly
codeCache: number
• Readonly
datadir: string
• Readonly
debugCode: boolean
• Readonly
discDns: boolean
• Readonly
discV4: boolean
• Readonly
dnsAddr: string
• Readonly
enableSnapSync: boolean
• Readonly
engineNewpayloadMaxExecute: number
• Readonly
engineNewpayloadMaxTxsExecute: number
• Readonly
engineParentLookupMaxDepth: number
• Readonly
events: EventBusType
Central event bus for events emitted by the different components of the client
• Readonly
execCommon: Common
• Readonly
execution: boolean
• Optional
Readonly
extIP: string
• Readonly
isSingleNode: boolean
• Readonly
key: Uint8Array
• lastSyncDate: number
lastSyncDate in ms
• Optional
lastsyncronized: boolean
• Readonly
lightserv: boolean
• Readonly
logger: Logger
• Readonly
maxAccountRange: bigint
• Readonly
maxFetcherJobs: number
• Readonly
maxFetcherRequests: number
• Readonly
maxInvalidBlocksErrorCache: number
• Readonly
maxPeers: number
• Readonly
maxPerRequest: number
• Readonly
maxRangeBytes: number
• Readonly
maxStorageRange: bigint
• Readonly
minPeers: number
• Readonly
mine: boolean
• Optional
Readonly
minerCoinbase: Address
• Optional
Readonly
multiaddrs: Multiaddr
[]
• Readonly
numBlocksPerIteration: number
• Optional
Readonly
port: number
• Readonly
prefixStorageTrieKeys: boolean
• Readonly
pruneEngineCache: boolean
• Readonly
safeReorgDistance: number
• Readonly
savePreimages: boolean
• Readonly
saveReceipts: boolean
• Readonly
server: undefined
| RlpxServer
= undefined
• shutdown: boolean
= false
Client is in the process of shutting down
• Readonly
skeletonFillCanonicalBackStep: number
• Readonly
skeletonSubchainMergeMinimum: number
• Readonly
snapAvailabilityDepth: bigint
• Readonly
snapTransitionSafeDepth: bigint
• Readonly
statelessVerkle: boolean
• Readonly
storageCache: number
• Optional
syncTargetHeight: bigint
Best known block height
• Readonly
syncedStateRemovalPeriod: number
• synchronized: boolean
• Readonly
syncmode: SyncMode
• Readonly
trieCache: number
• Readonly
txLookupLimit: number
• Readonly
useStringValueTrieDB: boolean
• Optional
Readonly
vm: VM
• Optional
Readonly
vmProfilerOpts: VMProfilerOpts
▪ Static
Readonly
ACCOUNT_CACHE: 400000
▪ Static
Readonly
CHAIN_DEFAULT: "mainnet"
▪ Static
Readonly
CODE_CACHE: 200000
▪ Static
Readonly
DATADIR_DEFAULT: "./datadir"
▪ Static
Readonly
DEBUGCODE_DEFAULT: false
▪ Static
Readonly
DNSADDR_DEFAULT: "8.8.8.8"
▪ Static
Readonly
ENGINE_NEWPAYLOAD_MAX_EXECUTE: 2
▪ Static
Readonly
ENGINE_NEWPAYLOAD_MAX_TXS_EXECUTE: 100
▪ Static
Readonly
ENGINE_PARENTLOOKUP_MAX_DEPTH: 128
▪ Static
Readonly
EXECUTION: true
▪ Static
Readonly
LIGHTSERV_DEFAULT: false
▪ Static
Readonly
MAXFETCHERJOBS_DEFAULT: 100
▪ Static
Readonly
MAXFETCHERREQUESTS_DEFAULT: 5
▪ Static
Readonly
MAXPEERS_DEFAULT: 25
▪ Static
Readonly
MAXPERREQUEST_DEFAULT: 100
▪ Static
Readonly
MAX_ACCOUNT_RANGE: bigint
▪ Static
Readonly
MAX_INVALID_BLOCKS_ERROR_CACHE: 128
▪ Static
Readonly
MAX_RANGE_BYTES: 50000
▪ Static
Readonly
MAX_STORAGE_RANGE: bigint
▪ Static
Readonly
MINPEERS_DEFAULT: 1
▪ Static
Readonly
NUM_BLOCKS_PER_ITERATION: 100
▪ Static
Readonly
PORT_DEFAULT: 30303
▪ Static
Readonly
PRUNE_ENGINE_CACHE: true
▪ Static
Readonly
SAFE_REORG_DISTANCE: 100
▪ Static
Readonly
SKELETON_FILL_CANONICAL_BACKSTEP: 100
▪ Static
Readonly
SKELETON_SUBCHAIN_MERGE_MINIMUM: 1000
▪ Static
Readonly
SNAP_AVAILABILITY_DEPTH: bigint
▪ Static
Readonly
SNAP_TRANSITION_SAFE_DEPTH: bigint
▪ Static
Readonly
STORAGE_CACHE: 200000
▪ Static
Readonly
SYNCED_STATE_REMOVAL_PERIOD: 60000
▪ Static
Readonly
SYNCMODE_DEFAULT: Full
= SyncMode.Full
▪ Static
Readonly
TRIE_CACHE: 200000
▸ getDataDirectory(dir
): string
Returns the location for each DataDirectory
Name | Type |
---|---|
dir |
DataDirectory |
string
▸ getDnsDiscovery(option
): boolean
Returns specified option or the default setting for whether DNS-based peer discovery
is enabled based on chainName. true
for goerli
Name | Type |
---|---|
option |
undefined | boolean |
boolean
▸ getNetworkDirectory(): string
Returns the network directory for the chain.
string
▸ superMsg(msgs
, meta?
): void
Name | Type |
---|---|
msgs |
string | string [] |
meta? |
any |
void
▸ updateSynchronizedState(latest?
, emitSyncEvent?
): void
Update the synchronized state of the chain
Emits
Event.SYNC_SYNCHRONIZED
Name | Type |
---|---|
latest? |
null | BlockHeader |
emitSyncEvent? |
boolean |
void
▸ Static
getClientKey(datadir
, common
): Promise
<undefined
| Uint8Array
>
Gets the client private key from the config db.
Name | Type |
---|---|
datadir |
string |
common |
Common |
Promise
<undefined
| Uint8Array
>
▸ Static
getConfigDB(networkDir
): Level
<string
| Uint8Array
, Uint8Array
>
Returns the config level db.
Name | Type |
---|---|
networkDir |
string |
Level
<string
| Uint8Array
, Uint8Array
>