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

Add to/from address filter options to `/extended/v1/tx` #1997

Closed zone117x closed 1 week ago

zone117x commented 3 weeks ago

Add query params to the tx list endpoint that can filter based on the sender and/or recipient address. The sender filter can apply to any tx type (they all have a sender), however, the recipient filter probably only makes sense for token_transfer tx types.

Example usage: /tx?from_address=SP2DRM5DKDJX6ECFJH9XDT66DZV8FK2H1A27JZHCA&to_address=SP11M3BVG5TGNWQ1FFE5EJM86TMV08YF3EK0JSMQ8