Getbestblockhash

Returns the hash of the best (tip) block in the longest blockchain.

Parameters

None

Returns

Returns the number of blocks in the longest blockchain.

hex (string) the block hash, hex-encoded

Example

//Request
curl -u user:password -H "Content-Type: application/json" -d '{"jsonrpc": "1.0", "id":"curltest", "method": "getbestblockhash", "params": [] }' http://<your-app-id>.ankr.com
//Response
{"result":"000000000000000d4737e2ec02c515fc9646c417947ec8786197eafa97fd8501","error":null,"id":1}