hirosystems / stacks-blockchain-api

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

feat: tx list contract id/name filter options #2018

Closed zone117x closed 1 week ago

zone117x commented 1 week ago

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

Add query params to the tx list endpoint that filter by contract-call contract_id and function_name.

Example usage: /tx?contract_id=SP000000000000000000002Q6VF78.pox-4&function_name=delegate-stx

codecov[bot] commented 1 week ago

Codecov Report

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

Project coverage is 72.78%. Comparing base (e7c224b) to head (5001161).

Files Patch % Lines
src/api/routes/tx.ts 83.33% 1 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## develop #2018 +/- ## =========================================== + Coverage 72.76% 72.78% +0.01% =========================================== Files 94 94 Lines 12647 12659 +12 Branches 2977 2926 -51 =========================================== + Hits 9203 9214 +11 - Misses 3282 3423 +141 + Partials 162 22 -140 ```

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

github-actions[bot] commented 1 week ago

Vercel deployment URL: https://stacks-blockchain-9sp5cdirf-blockstack.vercel.app :rocket: