Add new additional fields to the return object of getTransactionReceipt for optimism txs. #3775
wanglonghong
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I noticed that ethersjs doesn't give any information for l1 values (
l1Fee
,l1FeeScalar
,l1GasPrice
,l1GasUsed
) for optimism transactions.If we have them included in the return value of
getTransactionReceipt
orgetTransaction
named like additions. It would be great to analyze optimistic transaction.The reason why I want to have them included is related to a way to calculate transaction fee on optimism. Please refer the following link if you didn't get a chance to go through How do transaction fees on Optimism work section.
Actually
curl -X POST --data '{"jsonrpc":"2.0","method":"eth_getTransactionReceipt","params":["0x9ccd5a1949af817f11e1698db69578ec823538f37cf87db8d60d18833efeb3b6"],"id":1}' https://mainnet.optimism.io
-- this curl request returns everything I need for the calculation but filtered in etherjs when parsing it.Beta Was this translation helpful? Give feedback.
All reactions