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

Implemented APIs related to block retrieval (aside from proper error responses) #6

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

BikBikBikBikBik
Copy link

These changes implement getting the latest block, getting a block by height, and getting a block by hash.

These changes do not include error handling. I was not able to see any examples of existing HTTP error handling (e.g. returning 404) in the code so I'm not sure how you want to go about that. For now these calls simply return a 'Block not found' string that definitely should be a proper 404.

Finally, since I cannot read Chinese these changes have not been tested. I tried to guess what the readme says but I was not successful in getting my environment properly setup.

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

Successfully merging this pull request may close these issues.

1 participant