hirosystems / stacks-blockchain-api

API for the Stacks blockchain
https://stacks-blockchain-api.vercel.app
GNU General Public License v3.0
170 stars 108 forks source link

Using client to call PoX endpoint results in truncated data #1968

Closed aryzing closed 2 months ago

aryzing commented 2 months ago

Describe the bug When calling the PoX endpoint using the Info client, it seems that it is not returning the same data as a raw call to the API endpoint.

It may be because of this line,

https://github.com/hirosystems/stacks-blockchain-api/blob/beta/client/src/generated/apis/InfoApi.ts#L309

which is intended to manipulate the response from Core, but is being used for PoX.

To Reproduce Call the getPoxInfo() method, and inspect the results. They're a subset of what a raw call to the API returns.

zone117x commented 2 months ago

The /v2/pox endpoint is implemented by the core node. This repo contains (outdated) docs/client code for the core node endpoints for historical reasons, and they will likely be removed soon.

For an alternative try either:

Closing this issue in favor of https://github.com/hirosystems/stacks-blockchain-api/issues/1874