You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello. At blobscan we're interested in displaying decoded data for Optimism blobs. Your script is very useful to understand how the decoding works. However I've been doing some tests and it doesn't work anymore.
$ poetry run ./decode_opstack_blob.py 0x353c6f31903147f8d490c28e556caafd7a9fad8b3bc4fd210ae800ee24749adb.blob
found version 0 blob, declared length: 130044
found version 0 blob, declared length: 130044
found version 0 blob, declared length: 130044
found version 0 blob, declared length: 130044
found version 0 blob, declared length: 130044
found version 0 blob, declared length: 128609
remaining data bytes: 130043
channel: 1405357279b77226a3260d3fe227fb8a
frame num: 0
frame data length: 130020
is_last: b'\x00'
remaining data bytes: 130043
channel: 1405357279b77226a3260d3fe227fb8a
frame num: 1
frame data length: 130020
is_last: b'\x00'
remaining data bytes: 130043
channel: 1405357279b77226a3260d3fe227fb8a
frame num: 2
frame data length: 130020
is_last: b'\x00'
remaining data bytes: 130043
channel: 1405357279b77226a3260d3fe227fb8a
frame num: 3
frame data length: 130020
is_last: b'\x00'
remaining data bytes: 130043
channel: 1405357279b77226a3260d3fe227fb8a
frame num: 4
frame data length: 130020
is_last: b'\x00'
remaining data bytes: 128608
channel: 1405357279b77226a3260d3fe227fb8a
frame num: 5
frame data length: 128585
is_last: b'\x01'
result of 2155075 bytes: 01f4e09c0cd3c7a80904f77f137bf3d52e7fe827254134b0540bc9206e297e7aabd7deb7db3475f56dcecf3bb3dca6aefb8a...
timestamp since L2 genesis: 25636980
last L1 origin number: 19538899
parent L2 block hash: 04f77f137bf3d52e7fe827254134b0540bc9206e
L1 origin block hash: 297e7aabd7deb7db3475f56dcecf3bb3dca6aefb
number of L2 blocks: 138
how many were changed by L1 origin: 22
total txs: 2713
contract creation txs number: 0
legacy txs number: 669
total gas limit in txs: 2589220470
number of EIP-155 protected legacy txs: 666
This worked, decode_opstack_blob.py ended correctly.
Hey @PabloCastellano! Thanks for the report. This script was made for my very old article, and I didn't really update it since then.
I believe it might have something to do with new OP Stack's compression or just the fact that my script is unflexible af haha. I'll add a note in the README that the script is not updated. Or, if you want, you can create a PR and I'd happily merge it.
Hello. At blobscan we're interested in displaying decoded data for Optimism blobs. Your script is very useful to understand how the decoding works. However I've been doing some tests and it doesn't work anymore.
This seems to be related to the Fjord network upgrade last July 10th 2024.
I have uploaded some scripts I have used in our fork that you might find useful.
So for the example transaction:
This worked, decode_opstack_blob.py ended correctly.
However for the latest Optimism transaction:
For other transactions:
The text was updated successfully, but these errors were encountered: