hirosystems / hirosystems/stacks-blockchain-api

GET /extended/v1/contract/{contract_id}/events, add order option

Open
#1,922 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
193
Forks
127
Avg merge
16h 35m
Merged PRs (30d)
46

Description

I want to have the opportunity to read events from the older to the newest. The current behaviour is fetching the latest events and it's impossible to somehow arrange them to process everything from the oldest to the newest.

I want you to add one more request parameter like "order": "DESC"/"ASC" to this API method(GET /extended/v1/contract/{contract_id}/events).

I want to index specific contract events. I'll have a lambda function which will be called every minute to fetch the latest event logs and write them to our database. I planned to save offset to our DB to know from which place should I continue next time. But because of the current behaviour, it's impossible to implement this way.

I'll be grateful if you add it to the API, I hope it is not very hard to implement on your side.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.