post https://api.infstones.com/neo/mainnet/
Returns the block hash with the specified index.
Parameters
Object Name | Required | Type | Detail |
---|---|---|---|
BLOCK INDEX | ✅ | Integer | The block index (block height) |
"params": [1310102]
Result
The hash value of the corresponding block based on the specified index.
Example
Request
curl <your-endpoint> \
-X POST \
-H "Content-Type: application/json" \
-d '{"jsonrpc": "2.0", "method": "getblockhash", "params":[1310102],"id": 1}'
Return
{
"jsonrpc": "2.0",
"id": 1,
"result": "0x8b8143850fd4c058a46664d0fa33590b87d10e55acefe92aeb489c30167b2b19"
}