Skip to content

Move the block countdown page to the API v2 endpoint - #3605

Draft
tom2drum wants to merge 2 commits into
mainfrom
issue-3583
Draft

Move the block countdown page to the API v2 endpoint#3605
tom2drum wants to merge 2 commits into
mainfrom
issue-3583

Conversation

@tom2drum

Copy link
Copy Markdown
Collaborator

Resolves #3583

The block countdown page is the last consumer of the API v1 RPC endpoint in this app. An API v2 route has existed since 2025 but returned 422 for valid input; blockscout#14612 fixed that and shipped in backend v11.2.3, renaming every response field along the way. This branch moves the page to /api/v2/blocks/:height/countdown and drops the v1 resource.

Plan: .agents/tasks/3583-block-countdown-api-v2/spec.md

Spec-first draft — nothing is implemented yet. The branch receives the task's work subtask by subtask, and this description is rewritten when the PR is marked ready for review.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@tom2drum tom2drum added enhancement New feature or request need API For issues that wait for API changes labels Jul 30, 2026
The published versions predated blockscout#14612, so the block countdown
endpoint's renamed fields had no generated type. Publishing from dev was
blocked by an inconsistent types-package lockfile, fixed upstream in
blockscout#14639.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request need API For issues that wait for API changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Migrate block countdown from API v1 getblockcountdown to API v2

1 participant