-
|
Hi everyone, I've been working with transaction data on Celo and noticed that for some transactions of type 123 (Dynamic Fee Transaction v2) the I’d like to understand how to accurately compute the transaction fees for these transactions, especially in a way that matches what CeloScan and Blockscout display. Normally, I would calculate transaction fees using the formula: However, since gasPrice (or even effectiveGasPrice) is missing for these transactions, I’m unsure how to compute the correct fee. e.g Any clarification or pointers to relevant specs would be appreciated! Thanks in advance |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
|
Type 123 txs will return the For receipts before the L2 migration, the situation is more complicated, since the L1 relied on executing contracts to get the base fee for a block in the respective fee currency, which is required to calculated the effective gas price. This has two effects for type 123 receipts:
Blockscout has all the data, so you can see the effective gas price for your tx at https://celo.blockscout.com/tx/0x7ca62d85bd8f43c67a757dd76b750a8546b9f9e1a2efe4dfc631fd26e0964a9a |
Beta Was this translation helpful? Give feedback.
Type 123 txs will return the
effectiveGasPricefor all receipts after the L2 migration.For receipts before the L2 migration, the situation is more complicated, since the L1 relied on executing contracts to get the base fee for a block in the respective fee currency, which is required to calculated the effective gas price. This has two effects for type 123 receipts:
Blockscout has all the data, so you can see the effective gas price for your tx at https://celo.blockscout.com/tx/0x7ca62d85bd8f43c6…