Skip to content

Tx events endpoint not returning normal response format and response data is missing total property #2362

@nick-stacks

Description

@nick-stacks

Describe the bug
The tx events endpoint is not returning a total property, which is causing pagination to not show on events tables in the explorer. I believe this is a bug and the total property should be included in the response

Image

Also, the returned data format diverges from what the API typically returns

Image

To Reproduce
Steps to reproduce the behavior:
Use the Stacks API docs to query the tx event endpoint and compare its response to response from other list endpoints, such as txs

Expected behavior
I expect to receive a response like this:
{
limit: x,
offset: y,
total: <must be defined as the total # of events for the tx>,
results: [{eventObj1}, {eventObj2},...]
}

Screenshots
If applicable, add screenshots to help explain your problem.

Console log
If applicable, add console log to help explain your problem.

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions