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

api: add /block/.../raw endpoints #1032

merged 1 commit into from Feb 19, 2019


None yet
2 participants
Copy link

chappjc commented Feb 19, 2019

This adds the following endpoints:

  • "/block/best/raw"
  • "/block/{ind}/raw"
  • "/block/hash/{hash}/raw"

These return a new JSON type defined by api/types.BlockRaw.

Show resolved Hide resolved api/apiroutes.go Outdated
api: add /block/.../raw endpoints
Also add api/types.BlockRaw.

use strings.Builder to avoid copying a long string

@chappjc chappjc force-pushed the chappjc:api-block-raw branch from 8725999 to faf775e Feb 19, 2019

@chappjc chappjc merged commit 6b05323 into decred:master Feb 19, 2019

@chappjc chappjc deleted the chappjc:api-block-raw branch Feb 19, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.