For the complete documentation index, see llms.txt. This page is also available as Markdown.

eth_getHeaderByNumber

POST https://mainnet.valuechain.xyz

Returns the block header for the given block number or tag.

Parameters

Name
Type
Required
Description

block

quantity or tag

Yes

Hex block number, or earliest, latest, safe, finalized, or pending. See block tags.

Result

Header (object or null): Header object without the transaction list.

Example

Response

{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "number": "0xd81e9f",
    "hash": "0x565381ec3a896e084662587ed4eba8f3b6745ffeff7b1d7b672b4b1bb724f3b5",
    "parentHash": "0xd030ea66153bcfef30754d893a7b7873a28a91a84822e92483cdf9e0a7953782",
    "gasUsed": "0x5208",
    "baseFeePerGas": "0xf4240",
    "timestamp": "0x6aa2c353"
  }
}

Code examples

cURL

JavaScript

Python

Last updated