/optimism-txs-batch-decoder

batch decoder for optimism transactions.

Primary LanguageRust

Batch decoder

Batch decoder for Optimism Rollup.

How to setup

First things first, download the source code.

git clone https://github.com/SliceOfKekus/batch-decoder.git

Next step is setting environment variable. Set MAINNET_URL using any public network endpoints for mainnet in .env.example file and change it to .env.

And now it's ready to use!

Program input

  • A series of L1 batch transaction hash as command line arguments. Here's supposed to be image.

Program ouput

  • Number of batched transactions.
  • How much gas used by users.
  • How much gas used by sequencer (in other words how much gas users supposed to use).
  • Difference between these numbers in percentages.

Here's also supposed to be image.