Skip to content
Discussion options

You must be logged in to vote

hi you can try this tool https://github.com/ethereum-optimism/optimism/tree/develop/op-node/cmd/batch_decoder

To decode blob data and extract L2 transaction hashes, use this tool in two steps:

  1. batch_decoder fetch - Downloads blob from L1 beacon API and decodes it into frames
  2. batch_decoder reassemble - Assembles frames into channels, decompresses data, and decodes batches to extract L2 transactions

The final JSON output contains all L2 transaction RLP data, which you can then hash with keccak256() to get transaction hashes.

The example you post above from base included 3 batches

Batch 0: 4 L2 blocks,1,326 transactions
Batch 1: 4 L2 blocks,1,173 transactions
Batch 2: 1 L2 block,388 transa…

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
5 replies
@dhvanipa
Comment options

@joohhnnn
Comment options

@dhvanipa
Comment options

@joohhnnn
Comment options

@dhvanipa
Comment options

Answer selected by dhvanipa
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment