getblockhash

This RPC Method returns the hash of the tip block in the most-work fully-validated chain.

post

JSON RPC - getblockhash

Authorizations
Body
methodstring · enumRequiredPossible values:
Responses
200

Default Response

application/json
post
POST /v2/rpc/bitcoin/getblockhash HTTP/1.1
Host: api.secretkeylabs.io
x-api-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 37

{
  "method": "getblockhash",
  "params": []
}
200

Default Response

{
  "result": null,
  "error": null,
  "id": null
}

Last updated