Block Header

GET /blocks/latest/header

status: stable

Return the latest block-header available at the chain source

Responses

  • 406 application/json

    Not Acceptable

    Hide response attributes Show response attributes object
    • message string Required

      May occur when providing an invalid 'Accept' header.

    • code string Required

      Value is not_acceptable.

  • 200 application/json

    OK

    Hide response attributes Show response attributes object
    • header_hash string(hex) Required

      The hash of a block

      Minimum length is 64, maximum length is 64.

    • slot_no object Required
      Hide slot_no attributes Show slot_no attributes object
      • quantity integer Required

        Minimum value is 0.

      • unit string Required

        Value is slot.

    • block_height object Required
      Hide block_height attributes Show block_height attributes object
      • quantity integer Required

        Minimum value is 0.

      • unit string Required

        Value is block.

GET /blocks/latest/header
curl \
 --request GET https://localhost:8090/v2/blocks/latest/header
Response examples (406)
{
  "message": "string",
  "code": "not_acceptable"
}
Response examples (200)
{
  "header_hash": "3c07030e36bfffe67e2e2ec09e5293d384637cd2f004356ef320f3fe6c52041a",
  "slot_no": {
    "quantity": 42000,
    "unit": "slot"
  },
  "block_height": {
    "quantity": 1337,
    "unit": "block"
  }
}