Skip to content

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

Open
BikBikBikBikBik wants to merge 2 commits intoantchain:masterfrom
BikBikBikBikBik:master
Open

Implemented APIs related to block retrieval (aside from proper error responses)#6
BikBikBikBikBik wants to merge 2 commits intoantchain:masterfrom
BikBikBikBikBik:master

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