Last updated 1 month ago
-
curl --location --request POST 'https://go.getblock.io/<ACCESS-TOKEN>/' \ --header 'Content-Type: application/json' \ --data-raw '{"jsonrpc": "2.0", "method": "getbestblockhash", "params": [], "id": "getblock.io"}'
{ "error": null, "id": "getblock.io", "result": "b034141fc8e8024752b39513c9ed6db14690bf3a7fe9911a89c83578a73f0457" }
Example code for the getbestblockhash json-rpc method. Сomplete guide on how to use getbestblockhash json-rpc in GetBlock.io Web3 documentation.