> For a complete page index, fetch https://docs.conduit.xyz/llms.txt

# eth_getHeaderByNumber

POST https://rpc.plume.org/YOUR_API_KEY
Content-Type: application/json

Returns only the header fields of a block — no transaction list, uncles, or withdrawals body. Cheaper than `eth_getBlockByNumber` when you only need header data such as `stateRoot`, `baseFeePerGas`, or `timestamp`.

⚡ Compute Units: [15 CU](https://docs.conduit.xyz/rpc-nodes/information/compute-units)

Reference: https://docs.conduit.xyz/rpc-nodes/json-rpc-reference/eth-get-header-by-number

## Request

### Body (application/json)

This endpoint expects an object.

- `blockNumber` (BlockNumberOrTag, required) — Block number or tag.

## Response

### 200

Block header, or `null` if the block is not found.

- `parentHash` (string, required) — 32-byte hash of the parent block
- `nonce` (string, required) — 8-byte value used in proof-of-work mining. On post-Merge chains (all Conduit rollups) this is always `"0x0000000000000000"` — the field is retained for header-shape backwards compatibility.
- `sha3Uncles` (string, required) — SHA3 of the uncles data in the block
- `logsBloom` (string, required) — Bloom filter for the logs of the block
- `transactionsRoot` (string, required) — Root of the transaction trie
- `stateRoot` (string, required) — Root of the final state trie
- `receiptsRoot` (string, required) — Root of the receipts trie
- `mixHash` (string, required) — 32-byte hash. Post-Merge this field carries the prevRandao value (the beacon chain randomness) rather than a proof-of-work mix hash.
- `miner` (string, required) — 20-byte address of the beneficiary
- `difficulty` (string, required) — Integer of the difficulty for this block
- `extraData` (string, required) — Extra data field of this block
- `gasLimit` (string, required) — Maximum gas allowed in this block
- `gasUsed` (string, required) — Total gas used by all transactions in this block
- `timestamp` (string, required) — Unix timestamp for when the block was collated
- `number` (string, optional) — The block number, hex-encoded
- `hash` (string, optional) — 32-byte block hash
- `baseFeePerGas` (string, optional) — Base fee per gas in wei, hex-encoded. Introduced by EIP-1559 (London). Absent on pre-London blocks.
- `withdrawalsRoot` (string, optional) — Root of the withdrawals trie. Introduced by EIP-4895 (Shanghai). Absent on pre-Shanghai blocks.
- `blobGasUsed` (string, optional) — Total blob gas used by the transactions in this block, hex-encoded. Introduced by EIP-4844 (Cancun). Absent on pre-Cancun blocks.
- `excessBlobGas` (string, optional) — Running total of blob gas consumed in excess of the target, used to compute the blob gas price, hex-encoded. Introduced by EIP-4844 (Cancun). Absent on pre-Cancun blocks.
- `parentBeaconBlockRoot` (string, optional) — Parent beacon block root hash. Introduced by EIP-4788 (Cancun). Absent on pre-Cancun blocks.

## Types

### BlockNumberOrTag

- block tag: enum
  - Allowed values: `latest`, `earliest`, `pending`, `finalized`, `safe`
- block number: string

## Examples

**Request**

```json
[
  "0x1053d01"
]
```

**Response**

```json
{
  "id": "1",
  "jsonrpc": "2.0",
  "result": {
    "baseFeePerGas": "0xfa",
    "blobGasUsed": "0x9c40",
    "difficulty": "0x0",
    "excessBlobGas": "0x0",
    "extraData": "0x01000000fa000000020000000000000000",
    "gasLimit": "0x1c9c380",
    "gasUsed": "0x14ee5",
    "hash": "0xb59a93307822dde945d245538281d98bf2a8604a7e2b821b5977ff543ec9810e",
    "logsBloom": "0x00000000001000000000000000000000000000000000000000000000000000000000000000000000001000040000000000000040000000000000000000000000000010000000000000000008000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000010000000000000000000000004000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000000000004000000000000",
    "miner": "0x4200000000000000000000000000000000000011",
    "mixHash": "0x478943dd0ffd80155ce53907078d4ec61e0947066c1ac3650f5627501ea9346b",
    "nonce": "0x0000000000000000",
    "number": "0x1053d01",
    "parentBeaconBlockRoot": "0xdc1b8fea04c1179f660cb678138f31ec059b107fe1235c2d43fb67b8391bcb7a",
    "parentHash": "0x772f4d14029e76591922af279951165d162c10e96c1f236bd93d7700b6d811a4",
    "receiptsRoot": "0x81149cdf41f6cede871045f7bb384e7b05f0c3766a2a28d181c927811783dc5b",
    "requestsHash": "0xe3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
    "sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",
    "size": "0x445",
    "stateRoot": "0x9b1521664ef5c3909a7c663a7e49f21651af3d8fd9b7f25c5bf04883449a2860",
    "timestamp": "0x6ade5b01",
    "transactionsRoot": "0x0bd3a819d90da89197d55be6cb41568b33539ed9aea51c172a4d96d6d08fb855",
    "withdrawalsRoot": "0x2de03b25b45b26c5150cf2033c519b623d2a09545c172816ad24a9eecac846cc"
  }
}
```

**SDK Code**

```python
import requests

url = "https://rpc.plume.org/YOUR_API_KEY"

payload = ["0x1053d01"]
headers = {"Content-Type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
```

```javascript
const url = 'https://rpc.plume.org/YOUR_API_KEY';
const options = {
  method: 'POST',
  headers: {'Content-Type': 'application/json'},
  body: '["0x1053d01"]'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://rpc.plume.org/YOUR_API_KEY"

	payload := strings.NewReader("[\n  \"0x1053d01\"\n]")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby
require 'uri'
require 'net/http'

url = URI("https://rpc.plume.org/YOUR_API_KEY")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "[\n  \"0x1053d01\"\n]"

response = http.request(request)
puts response.read_body
```

```java
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://rpc.plume.org/YOUR_API_KEY")
  .header("Content-Type", "application/json")
  .body("[\n  \"0x1053d01\"\n]")
  .asString();
```

```php
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://rpc.plume.org/YOUR_API_KEY', [
  'body' => '[
  "0x1053d01"
]',
  'headers' => [
    'Content-Type' => 'application/json',
  ],
]);

echo $response->getBody();
```

```csharp
using RestSharp;

var client = new RestClient("https://rpc.plume.org/YOUR_API_KEY");
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "[\n  \"0x1053d01\"\n]", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = ["Content-Type": "application/json"]
let parameters = ["0x1053d01"] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://rpc.plume.org/YOUR_API_KEY")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```