-
Notifications
You must be signed in to change notification settings - Fork 64
getBlockHashes
AxVultis edited this page Nov 12, 2022
·
2 revisions
The getBlockHashes method returns an array of block hashes for a specified block range.
JSON-RPC
{
"jsonrpc": "2.0",
"id": 7,
"method": "getBlockHashes",
"params": {
"blockCount": 5,
"firstBlockIndex": 0
}
}
Request Details:
Argument | Mandatory | Description | Format |
---|---|---|---|
blockCount | Yes | The number of blocks to return | int |
firstBlockIndex | Yes | The height of the first block | int |
JSON-RPC
{
"jsonrpc": "2.0",
"id": 7,
"result": {
"blockHashes": [
"850ac16022f4dddab624fad3f9049dba80592c8ea51a5dff19fefeb386e536b1",
"dc02c7a5237ab5b8cadffb4283c34328ba6dad002b2a9e2daebdfeb41e5816a0",
"8f5f2b40d88ae61032862c4b6ff908a41c85e0c9e42546584b87a79b93cf7eb4",
"9104a88eb1c497084150d457d4ab8a9b5d1c37cc61b1397544e769122f8a6b1d",
"81b3b44950f96fd776332b7636d5ccaf1c0b99c82d23b44d70e4bdbdd1856c65"
]
}
}
Response Details:
Argument | Description | Format |
---|---|---|
blockHashes | Block hashes for the specified range | list of strings |
© 2018-2023 Conceal Network. All rights reserved.
- Conceal API Reference
- General Methods
- Private Key Methods
- Wallet Address Methods
- Deposit Methods
- Transaction Methods
- Delayed Transaction Methods
- Wallet Export Methods