hirosystems / stacks-blockchain-api

API for the Stacks blockchain
https://stacks-blockchain-api.vercel.app
GNU General Public License v3.0
172 stars 111 forks source link

feat: tx list timestamp filter options #2015

Closed zone117x closed 3 months ago

zone117x commented 3 months ago

Closes https://github.com/hirosystems/stacks-blockchain-api/issues/1996

Add timestamp (by burn_block_time) filter options to /extended/v1/tx

Example usage: /tx?start_time=1704067200&end_time=1706745599 (one or both can be specified)

github-actions[bot] commented 3 months ago

Vercel deployment URL: https://stacks-blockchain-3vvqasv0f-blockstack.vercel.app :rocket:

codecov[bot] commented 3 months ago

Codecov Report

Attention: Patch coverage is 81.81818% with 2 lines in your changes missing coverage. Please review.

Project coverage is 72.79%. Comparing base (542973c) to head (14fe1f4).

Files Patch % Lines
src/api/routes/tx.ts 75.00% 2 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## develop #2015 +/- ## =========================================== + Coverage 72.76% 72.79% +0.03% =========================================== Files 94 94 Lines 12637 12647 +10 Branches 2911 2976 +65 =========================================== + Hits 9195 9207 +12 + Misses 3420 3279 -141 - Partials 22 161 +139 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

zone117x commented 3 months ago

@rafaelcr yep we have a burn_block_time index 👍

blockstack-devops commented 2 months ago

:tada: This PR is included in version 7.12.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket: