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

core rpc: get several blocks at once as json #90

Merged
merged 1 commit into from
Sep 9, 2018
Merged

core rpc: get several blocks at once as json #90

merged 1 commit into from
Sep 9, 2018

Conversation

cryptochangements34
Copy link
Contributor

adds get_blocks_json rpc endpoint. Grabs several blocks by height all at once and return the result as a JSON encoded string

Example usage:

curl -X POST http://127.0.0.1:48081/get_blocks_json -d '{"heights":[20,5, 6218]}}' -H 'Content-Type: application/json'

@cryptochangements34 cryptochangements34 merged commit 58cce8d into masari-project:master Sep 9, 2018
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.

None yet

2 participants