Returns a list of recent blocks across all layers

Changed on

Sorted from most to least recent. Limited to 10 blocks.

get/recent_blocks

Request

  • Base URL: https://nexus.oasis.io/v1
  • URL: https://nexus.oasis.io/v1/recent_blocks
  • Auth: none declared

Response

A JSON object containing a list of recent blocks.

total_countinteger required

The total number of records that match the query, i.e. the number of records the query would return with limit=infinity.

is_total_count_clippedboolean required

Whether total_count is clipped for performance reasons.

Example response

{
  "total_count": 412,
  "is_total_count_clipped": true,
  "blocks": [
    {
      "layer": "sapphire",
      "height": 8048956,
      "hash": "0a29ac21fa69bb9e43e5cb25d10826ff3946f1ce977e82f99a2614206a50765c",
      "timestamp": "2022-03-01T00:00:00Z",
      "num_transactions": 17
    }
  ]
}

Changes