nazt / optimism-txs-batch-decoder

Any suggestion about my code would be awesome! I'm new at this playground, so... Yeah.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

Any suggestion about my code would be awesome! I'm new at this playground, so... Yeah.


Languages

Language:Rust 99.9%Language:Shell 0.1%