cfx_getBestBlockHash
Returns best block hash.
- CURL
curl --request POST \
     --url https://main.confluxrpc.com \
     --header 'accept: application/json' \
     --header 'content-type: application/json' \
     --data '
{
  "id": 1,
  "jsonrpc": "2.0",
  "params": [],
  "method": "cfx_getBestBlockHash"
}'
Result
Schema
type : string
Pattern : 
^0x[0-9,a-f,A-F]{64}$Example
- cfx_getBestBlockHash
Request
curl -X POST --data \
'{
    "jsonrpc": "2.0",
    "id": 1,
    "method": "cfx_getBestBlockHash",
    "params": []
}' \
-H "Content-Type: application/json" \
localhost:12539
Response
"0x375cf52772fff6760eefd0545b7fac32f49f86634984270c61046f8f582c4624"