Head

Get the most recently finalized block.

Returns the most recently finalized block. Replaces /block from versions < v1.0.0.

GEThttps://dot-playbook.nownodes.io/blocks/head
Query parameters
Response

successful operation

Body
numberstring (unsignedInteger)

The block's height.

hashstring (hex)

The block's hash.

parentHashstring (hex)

The hash of the parent block.

stateRootstring (hex)

The state root after executing this block.

extrinsicRootstring (hex)

The Merkle root of the extrinsics.

authorIdstring (ss58)

The account ID of the block author (may be undefined for some chains).

logsarray of DigestItem (object)

Array of DigestItems associated with the block.

onInitializeBlockInitialize (object)

Object with an array of SanitizedEvents that occurred during block initialization with the method and data for each.

extrinsicsarray of Extrinsic (object)

Array of extrinsics (inherents and transactions) within the block.

onFinalizeBlockFinalize (object)

Object with an array of SanitizedEvents that occurred during block construction finalization with the method and data for each.

finalizedboolean

A boolean identifying whether the block is finalized or not. Note: on chains that do not have deterministic finality this field is omitted.

decodedXcmMsgsobject
Request
const response = await fetch('https://dot-playbook.nownodes.io/blocks/head', {
    method: 'GET',
    headers: {},
});
const data = await response.json();
Response
{
  "number": "text",
  "hash": "text",
  "parentHash": "text",
  "stateRoot": "text",
  "extrinsicRoot": "text",
  "authorId": "text",
  "logs": [
    {
      "type": "text",
      "index": "text",
      "value": [
        "text"
      ]
    }
  ],
  "onInitialize": {
    "events": [
      {
        "method": "text",
        "data": [
          "text"
        ]
      }
    ]
  },
  "extrinsics": [
    {
      "method": {
        "pallet": "text",
        "method": "text"
      },
      "signature": {
        "signature": "text",
        "signer": "text"
      },
      "nonce": "text",
      "tip": "text",
      "hash": "text",
      "info": {
        "weight": {
          "refTime": "text",
          "proofSize": "text"
        },
        "class": "Normal",
        "partialFee": "text",
        "kind": "text"
      },
      "era": "{\"mortalEra\":[\"64\", \"11\"]}",
      "events": [
        {
          "method": "text",
          "data": [
            "text"
          ]
        }
      ],
      "success": false,
      "paysFee": false
    }
  ],
  "onFinalize": {
    "events": [
      {
        "method": "text",
        "data": [
          "text"
        ]
      }
    ]
  },
  "finalized": false,
  "decodedXcmMsgs": {
    "horizontalMessages": [
      {
        "originParaId": "text",
        "destinationParaId": "text"
      }
    ],
    "downwardMessages": [
      {
        "sentAt": "text",
        "msg": "text"
      }
    ],
    "upwardMessages": [
      {
        "originParaId": "text"
      }
    ]
  }
}