-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enable transactions count multiple filters #2054
Comments
I've looked into this and sadly it won't be as easy as removing the restriction. This is due to a limitation in the current implementation, where in order to have the API respond within reasonable time we count differently depending on the filters. If it's a filter by time/gen we can derive the count, but it it's by type/type_group we have to check in a table that keeps track of the count of all transaction types |
Aha, thanks for input. for now you wont see the counter as its temporarily hidden for combined params |
While figuring out how to implement this I stumbled upon this endpoint https://mainnet.aeternity.io/mdw/swagger/#/default/GetTransactionsStats which is more or less what I was implementing. Would that endpoint work for you? It allows you to filter by type and date. |
I have checked that. Its not going to work as the data are grouped by interval |
I've added a modified stats endpoint for the transactions. It works like the normal one, except it returns the summed up count of all the intervals. Once it's deployed it will be available at |
That should probably work good enough, thanks. Waiting for the deployment then |
https://mainnet.aeternity.io/mdw/v3/transactions/count?scope=time:1734600720-1734687120&type=spend
error "invalid query: can't query by multiple filters and/or invalid filters"
But that's exactly what I want .] please enable filtering by multiple filters / combined parameters
The text was updated successfully, but these errors were encountered: