Skip to content

Conversation

rafaelcr
Copy link
Collaborator

@rafaelcr rafaelcr commented May 15, 2025

Adds a new endpoint under /extended/v2/block-tenures/:height/blocks so users can get blocks only for a specific tenure. This endpoint builds over the code for the v2 blocks endpoint so it also inherits cursor pagination.

A new route is created so we can open the possibility of adding a REST endpoint to get stats or data from a specific tenure as requested in #2148

Replaces #2144

Copy link

github-actions bot commented May 15, 2025

Vercel deployment URL: https://stacks-blockchain-fxcs8hq0g-hirosystems.vercel.app 🚀

Copy link

codecov bot commented May 15, 2025

Codecov Report

Attention: Patch coverage is 96.66667% with 1 line in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
src/api/routes/v2/block-tenures.ts 95.00% 1 Missing ⚠️

📢 Thoughts on this report? Let us know!

@rafaelcr rafaelcr changed the title feat: add tenure_height filter to blocks endpoint feat: add /extended/v2/block-tenures/:height/blocks endpoint May 15, 2025
Copy link
Contributor

@zone117x zone117x left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great!

@rafaelcr rafaelcr merged commit f5c2e01 into develop May 16, 2025
26 checks passed
@rafaelcr rafaelcr deleted the feat/tenure-height-filter branch May 16, 2025 13:35
hirosystems-release-bot bot added a commit that referenced this pull request May 26, 2025
## [8.11.0](v8.10.0...v8.11.0) (2025-05-26)

### Features

* add /extended/v2/block-tenures/:height/blocks endpoint ([#2285](#2285)) ([f5c2e01](f5c2e01))
* stacks core event and rpc proxy body limits configurable via env ([#2278](#2278)) ([8a54e9d](8a54e9d))
* store and expose vm_error for failed transactions ([#2286](#2286)) ([7ac7513](7ac7513))

### Bug Fixes

* consider microblock transactions in balance calculations ([#2277](#2277)) ([3418863](3418863))
* count stx mint data at block 0 towards account balances ([#2289](#2289)) ([a0cd9f2](a0cd9f2))
* ignore unanchored param for BNS names endpoint ([#2263](#2263)) ([3d33725](3d33725))
* keep a table of latest stacks node event timestamps ([#2266](#2266)) ([6f111ad](6f111ad))
* module imports in block tenure routes ([#2287](#2287)) ([2cb442e](2cb442e))
* **rosetta:** get current block should only join by stacks chain tip information ([#2265](#2265)) ([78ebad0](78ebad0))
* simplify transaction events query ([#2279](#2279)) ([517ca68](517ca68))
@hirosystems-release-bot
Copy link
Contributor

🎉 This PR is included in version 8.11.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants