Skip to content
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

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

Closed
aryzing opened this issue May 2, 2024 · 1 comment
Closed

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

aryzing opened this issue May 2, 2024 · 1 comment

Comments

@aryzing
Copy link

aryzing commented May 2, 2024

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
Copy link
Member

zone117x commented May 6, 2024

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 #1874

@zone117x zone117x closed this as completed May 6, 2024
@github-project-automation github-project-automation bot moved this from 🆕 New to ✅ Done in API Board May 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

No branches or pull requests

2 participants