Repository navigation
[docs-agent] Add alchemy_getBlockByTimestamp to the Utility API - #1841
Open
docs-agent-alchemyplatform[bot] wants to merge 1 commit into
Open
docs-agent-alchemyplatform[bot] wants to merge 1 commit into
docs-agent-alchemyplatform[bot] wants to merge 1 commit into
Conversation
Adds an OpenRPC spec for alchemy_getBlockByTimestamp under the Utility API (timestamp as Unix s/ms or ISO-8601, optional includeTransactions, returns the eth_getBlockByNumber block object, closest-block / earliest-on-tie / head and genesis clamping, -32602 and -32000 errors). Removes the orphan Blocks by Timestamp REST page with a redirect from its old slug to the new method page, updates the Utility API overview, and lists the method under unsupported batch request APIs. Requested-by: @abdulmanan-creator
docs-agent-alchemyplatform
Bot
requested a review
from a team
as a code owner
November 28, 2026 18:43
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
🔗 Preview Mode
|
This branch has not been deployed
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.
Summary
Documents
alchemy_getBlockByTimestamp, now live for all customers.src/openrpc/alchemy/block-by-timestamp/, added to the Utility API section as "Block By Timestamp Endpoints". Method page:/docs/data/utility-apis/block-by-timestamp-endpoints/alchemy-get-block-by-timestamp.[{ "timestamp": ..., "includeTransactions": ... }](matches the server's own-32602hint).timestampis Unix seconds, Unix milliseconds, or ISO-8601 with a time zone;includeTransactionsdefaults tofalse.$refto the shared EVMBlockschema, the same objecteth_getBlockByNumberreturns. Example is a real eth-mainnet response fortimestamp: 1500000000(block 4019262, ts 1499999999).-32602,-32000.x-compute-units, per the request to leave CU values to Daikon once the method is public (chain-config currently has it asMETHOD_PRERELEASE, 200 CU).blocks-by-timestamp.mdxREST stub and redirected/docs/reference/blocks-by-timestampto the new method page.Live verification (docs-demo key)
1700000000returns block 18573051 (ts 1700000003, 3s after vs 9s before).1699999997(midpoint of 1699999991 and 1700000003) returns the earlier block.4102444800returns the head block.0and1return genesis.>= 1e12read as ms,999999999999read as seconds), ISO-8601 withZor offset all work. Date-only or no-offset ISO strings return-32602.-32602. A batch returns-32000 Internal errorper entry.eth_getBlockByNumberfor the same block.Servers (please confirm)
Seeded from the docs' EVM chain specs (115 networks), then live-probed each one. Left out:
-32000 Unable to complete request at this timefor this method, thougheth_blockNumberworks: Astar Mainnet, Boba Sepolia, Cronos Mainnet, Hyperliquid Testnet, Sei Mainnet, Sei Testnet.Not verifiable from the demo key (network not enabled on that app) but included as EVM: Alpen Testnet, ApeChain Testnet, Elysium Mainnet, Giwa Sepolia. Ronin Saigon works for recent timestamps but returned
-32000for a 2023 timestamp.This is a new spec, so Daikon's Update Servers run won't manage its server list until it's wired up there.
Requested by
@abdulmanan-creator (via Slack thread)