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

Stop using /v1a/transaction?type=block&count=1 to query the best block #2

Open
andreabadesso opened this issue Apr 22, 2021 · 0 comments

Comments

@andreabadesso
Copy link
Collaborator

andreabadesso commented Apr 22, 2021

"I don't really like using this API to get the network height but we still don't have an endpoint for that. Maybe we should add one, it's a simple and important API.

In the meantime maybe we could use /v1a/get_block_template, this returns the template of the block to be mined.

response.metadata.height is the block height to be mined, so the network height is this value -1. I still don't like it, so not sure if we should change.

One of the reasons I don't like using this API is because it was developed to be used on the explorer. With the new explorer service, this API might become deprecated."

Originally posted by @pedroferreira1 in #1 (comment)

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

No branches or pull requests

1 participant