Skip to content

feat(anvil): expose api to query blobs on anvil #10978

Open
@Thegaram

Description

@Thegaram

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 (by blobVersionedHash), or anvil_getBlobsByTransactionHash (by transactionHash).

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:

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

Labels

Type

No type

Projects

Status

Backlog

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions