Skip to content

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

Notifications You must be signed in to change notification settings

xdaichain/optimism-txs-batch-decoder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •