Returns the next light client block
Returns the next light client block
curl -i -X POST \
https://rpc.mainnet.fastnear.com/ \
-H 'Content-Type: application/json' \
-d '{
"jsonrpc": "2.0",
"id": "fastnear",
"method": "next_light_client_block",
"params": {
"last_block_hash": "BnHU4MCqsNVgLRCiZteef85VYxCbNzwkWEo1cEG8Z6VX"
}
}'Successful response
A state for the current head of a light client. More info here.
{ "jsonrpc": "2.0", "id": "string", "result": { "approvals_after_next": [ … ], "inner_lite": { … }, "inner_rest_hash": "string", "next_block_inner_hash": "string", "next_bps": [ … ], "prev_block_hash": "string" }, "error": { "code": 0, "message": "string", "data": {} } }