get blocks details by hashes: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 14: | Line 14: | ||
| status || Status of the request, "OK" if successful || string | | 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 == | == Notes == | ||
* Block hashes are passed as arrays of 8-bit integers, instead of hexadecimal string | * Block hashes are passed as arrays of 8-bit integers, instead of hexadecimal string |
Revision as of 01:32, 23 March 2020
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