get blocks details by hashes

From Talleo Wiki
Revision as of 03:32, 23 March 2020 by Mika (talk | contribs)
Jump to navigation Jump to search

Input

Argument Mandatory Description Format
blockHashes yes List of block hashes array

Output

Argument Description Format
blocks List of blocks array
status Status of the request, "OK" if successful string

Description

  • This is JSON version of get_blocks_details_by_hashes.bin and uses same structs as the binary version. This means some values need to be converted if passed to methods expecting strings instead of arrays of 8-bit integers.

Notes

  • Block hashes are passed as arrays of 8-bit integers, instead of hexadecimal string