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

GET https://testnetapi.akashnet.net/blocks/latest is not implemented #274

Open
ygrishajev opened this issue Jan 9, 2025 · 1 comment
Open
Assignees

Comments

@ygrishajev
Copy link

No description provided.

@chainzero
Copy link
Collaborator

Cosmos has started to deprecate many REST API endpoints in latest SDK versions in favor of RPC/gRPC
Appears the REST API query for latest block is no longer available based on testing of:

Successful query on mainnet and pre-existing SDK version

curl -X 'GET' \
  'https://api.akashnet.net:443/blocks/latest' \
  -H 'accept: application/json'

Unsuccessful - not implemented - query on testnet/Cosmos SDK 47

curl -X 'GET' \
  'https://testnetapi.akashnet.net:443/blocks/latest' \
  -H 'accept: application/json'

There is another REST API endpoint that remains available in SDK 47 and related to fetch of latest block below. But returns different data structure than prior query above.

curl -X 'GET' \
  'https://testnetapi.akashnet.net/cosmos/base/tendermint/v1beta1/blocks/latest' \
  -H 'accept: application/json'

Above endpoint was available in prior versions as well but now returns different data structure in later SDK. Endpoint/query that can be used for prior versions/current mainnet:

curl -X 'GET' \
  'https://api.akashnet.net:443/cosmos/base/tendermint/v1beta1/blocks/latest' \
  -H 'accept: application/json'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants