-
Team or ProjectNo response Module Affected
Rust Version1.75 Operating System
Issue DescriptionHey, As a team we want to index similar to other EVMs available in Ethereum ecosystem, zkSync to our database. During indexing process we found a block
I understand that:
But could you help me understand why this event was emitted? How received that ETH and why? Expected BehaviorCurrent BehaviorRepository Link (if applicable)No response Additional DetailsNo response Prior Research
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
In the context of ZKsync, a "block level log" typically refers to logs that are generated by system contracts within a block, even if there are no explicit user transactions within that block. These logs are crucial for maintaining the state and operations of the system contracts on the ZKsync network. From the log data you provided, it appears that the log was emitted by the bootloader contract ( The log indicates a transfer event ( The recipient of the ETH ( For more detailed insights into how these system contracts operate and manage such logs, you can refer to the ZKsync documentation on System Contracts and the specific mechanisms they use for logging and handling transactions. For further technical discussions or to delve deeper into specific implementation details, I recommend visiting the ZKsync developers discussions on Github. Your feedback helps us serve you better. If this fully addresses your question, please give it a thumbs up. If it doesn't, please give it a thumbs down. This will inform the community and team so we can improve our support. |
Beta Was this translation helpful? Give feedback.
-
@MRabenda All transactions in ZK Stack blockchains emit transfer events for the transaction fee. This fee (and transfer events) transfers happen between fee payer (from address or paymaster) and 0x8001 (the bootloader). However, the bootloader does not hold these fees. All fees are transferred to the current fee collection address. This was previously 0xfeee860e7aae671124e9a4e61139f3a5085dfeee, now it is 0xA9232040BF0E0aEA2578a5B2243F2916DBfc0A69. These transfers happen only at the end of the batch. Not during every block. (One batch contains multiple blocks.) Block 2225352 is the last block in a batch. It happens not to contain any transactions, but the transfer of collected fees from bootloader to fee collection address is attached to it. |
Beta Was this translation helpful? Give feedback.
@MRabenda All transactions in ZK Stack blockchains emit transfer events for the transaction fee. This fee (and transfer events) transfers happen between fee payer (from address or paymaster) and 0x8001 (the bootloader).
However, the bootloader does not hold these fees. All fees are transferred to the current fee collection address. This was previously 0xfeee860e7aae671124e9a4e61139f3a5085dfeee, now it is 0xA9232040BF0E0aEA2578a5B2243F2916DBfc0A69. These transfers happen only at the end of the batch. Not during every block. (One batch contains multiple blocks.)
Block 2225352 is the last block in a batch. It happens not to contain any transactions, but the transfer of collected fees from bo…