Returns the most recently finalized block's header.
successful operation
The hash of the parent block.
The block's height.
The state root after executing this block.
The Merkle root of the extrinsics.
const response = await fetch('https://dot-playbook.nownodes.io/blocks/head/header', { method: 'GET', headers: {}, }); const data = await response.json();
{ "parentHash": "text", "number": "text", "stateRoot": "text", "extrinsicRoot": "text", "digest": { "logs": [ { "type": "text", "index": "text", "value": [ "text" ] } ] } }