With the arrival of Reth 1.0, we have a relatively stable and modular Ethereum full node implementation. Many Ethereum L1 and L2 tasks can be completed by extending or modifying Reth.
In this L2s in Action
series, I will walk you through a series of from-scratch tasks from simple to complex to build your own personalized L1 or L2 infrastructure.
In this chapter, I will create an EVM variant with a custom precompile, building on revm. This custom precompile takes an address as its input, then reads the account's contract bytecode and returns the number of zero bytes in it.
In this chapter, I will create a L2 indexer which indexes all hypothetical L2 batches into a local database. The indexer is based on Reth's ExEx(Executable Extension) framework.