ordhook icon indicating copy to clipboard operation
ordhook copied to clipboard

Inaccurate total returned in transfers per block

Open forgxyz opened this issue 1 year ago • 1 comments

Cross-posting from Discord

Total does not align with the actual number of results available. Imo, it should be all available ordinals transfers and you can include a second number that is number of cursed ordinals, if that is the desired behavior. I only see one definition for total in the stacks api and it is "The number of all available list items" (https://github.com/hirosystems/docs/blob/main/docs/stacks-blockchain-api/feature-guides/pagination.md?plain=1#L10) which is not accurate for the ordinals transfers API.

For example block 774485

  • Total = 2
  • Results = 4
    • Of which, cursed inscriptions = 2

@WHYTEWYLL @sam-xyz

forgxyz avatar May 08 '24 18:05 forgxyz

Thanks for the feedback @forgxyz! I'm moving this issue to the ordinals-api for better tracking.

lgalabru avatar May 10 '24 14:05 lgalabru

This was ported in the new monorepo including all the indexers and their APIs, can you please provide an example?

ASuciuX avatar Jun 27 '25 14:06 ASuciuX