stacks-blockchain-api icon indicating copy to clipboard operation
stacks-blockchain-api copied to clipboard

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

Open nick-stacks opened this issue 2 months ago • 0 comments

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.

nick-stacks avatar Oct 20 '25 22:10 nick-stacks