Open
Description
Component
Anvil
Describe the feature you would like
- Add an option in anvil to store and index blob sidecars.
- Add an API to retrieve blobs. E.g.
anvil_getBlobByHash
(byblobVersionedHash
), oranvil_getBlobsByTransactionHash
(bytransactionHash
).
Additional context
Many rollup teams use anvil
as a convenient tool for running devnets, mainnet shadowfork tests, etc. In this setup, the rollup node produces an L2 chain and sends blob transactions to L1 (anvil). This is already possible today.
Some aspects of rollups (e.g. chain derivation) require L2 nodes to query blobs and decode them. This is currently not possible because anvil does not persist blobs and does not provide an API to query them (see previous discussion).
As an example, Scroll's node currently supports 4 types of blob sources:
- Beacon API
"/eth/v1/beacon/blob_sidecars"
. This takes the slot as its argument, so probably not suitable for Anvil. - Blobscan API: https://api.blobscan.com/#/blobs/blob-getByBlobId
- BlockNative API: https://docs.blocknative.com/blocknative-data-archive/blob-archive
- AWS S3.
If Anvil exposed an API similar to Blobscan's, it would be easy for our team to add a new anvil blob source and use that on devnets.
Metadata
Metadata
Assignees
Type
Projects
Status
Backlog