CommonOptions
CommonOptions:
ViemChain
&object
Type declaration
customCrypto?
optional
customCrypto:CustomCrypto
Custom crypto implementations For EIP-4844 support kzg must be passed
Warning
KZG can add a significant amount of bundle size to an app In future a stub will be provided that that automatically returns valid without checking the kzg proof
Example
eips?
optional
eips:ReadonlyArray
<number
>
Eips to enable. Defaults to [1559, 4895]
Default
hardfork?
optional
hardfork:Hardfork
Hardfork to use. Defaults to shanghai
Default
loggingLevel?
optional
loggingLevel:LogOptions
["level"
]
Logging level of the Tevm logger instance
Default
Examples
You can also create a Common instance from viem chains: