curl --request POST \
--url https://api.uniblock.dev/uni/v1/json-rpc?chainId=bitcoin-testnet \
--header 'content-type: application/json' \
--data '{
"id": 1,
"jsonrpc": "2.0",
"method": "getbestblockhash",
"params": []
}'
{
"jsonrpc": "2.0",
"id": 1,
"result": ""
}
Bitcoin
getbestblockhash
Returns the hash of the most recent block on the best chain.
curl --request POST \
--url https://api.uniblock.dev/uni/v1/json-rpc?chainId=bitcoin-testnet \
--header 'content-type: application/json' \
--data '{
"id": 1,
"jsonrpc": "2.0",
"method": "getbestblockhash",
"params": []
}'
{
"jsonrpc": "2.0",
"id": 1,
"result": ""
}
Was this page helpful?