Repository navigation
Use timestamps from logs when they are provided - #247
Merged
Merged
Conversation
Signed-off-by: Chengxuan Xing <chengxuan.xing@kaleido.io>
Chengxuan
force-pushed
the
leverage-log-timestamp
branch
from
September 28, 2026 09:28
f339468 to
2d59875
Compare
Signed-off-by: Chengxuan Xing <chengxuan.xing@kaleido.io>
Signed-off-by: Chengxuan Xing <chengxuan.xing@kaleido.io>
peterbroadhurst
approved these changes
Sep 28, 2026
Contributor
There was a problem hiding this comment.
Looks like a non-formal support approach to this started in 2022 with geth, and has spread out to all clients: https://ethereum-magicians.org/t/proposal-for-adding-blocktimestamp-to-logs-object-returned-by-eth-getlogs-and-related-requests/11183
┌──────────────────────────────┬─────────────────────────────────────────────────────────────────────────────────────┬───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│ Client │ First release with blockTimestamp on eth_getLogs │ Notes │
├──────────────────────────────┼─────────────────────────────────────────────────────────────────────────────────────┼───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┤
│ Reth │ April 2024 (PR #7606 (https://github.com/paradigmxyz/reth/pull/7606)) │ Earliest implementer, well before the spec merged. │
├──────────────────────────────┼─────────────────────────────────────────────────────────────────────────────────────┼───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┤
│ Geth │ v1.16.0, June 2025 (PR #31887 (https://github.com/ethereum/go-ethereum/pull/31887)) │ Covers getLogs, filter logs, filter changes and eth_subscribe logs. Initially decimal, switched to hex in v1.16.1. Not populated in │
│ │ │ eth_simulateV1 results. │
├──────────────────────────────┼─────────────────────────────────────────────────────────────────────────────────────┼───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┤
│ Erigon │ v3.2.0, October 2025 (PR #16417 (https://github.com/erigontech/erigon/pull/16417)) │ Erigon had it briefly years ago, then moved it to erigon_getLogs. eth_getFilterChanges and eth_subscribe("logs") only gained it in v3.7.0 │
│ │ │ (September 2026). │
├──────────────────────────────┼─────────────────────────────────────────────────────────────────────────────────────┼───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┤
│ Besu │ 25.10.0 (PR #9278 (https://github.com/hyperledger/besu/pull/9278)) │ Receipt logs in eth_getTransactionReceipt and eth_getBlockReceipts followed in 25.11.0. │
├──────────────────────────────┼─────────────────────────────────────────────────────────────────────────────────────┼───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┤
│ Nethermind │ 1.35.0, October 2025 (PR #9379 │ Documented as a hex integer in the eth namespace docs (https://docs.nethermind.io/interacting/json-rpc-ns/eth/). │
│ │ (https://github.com/NethermindEth/nethermind/pull/9379)) │ │
└──────────────────────────────┴─────────────────────────────────────────────────────────────────────────────────────┴───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Newer Ethereum nodes provide block timestamps as part of the eth_getLogs response. Adding support in EVM Connect to save an extra call when block timestamps are already present in the returned logs.