# eth_getBlockByNumber - Etherlink RPC Method

Returns information about a block by block number on Etherlink.

## When to Use This Method

Read the complete historical block at 4,162,737, including its transaction object.

## Request Parameters

- `blockNumber` (`QUANTITY, required`): Block number in hexadecimal. The example uses the recorded historical height.
- `fullTransactions` (`boolean, required`): True returns transaction objects, as shown in the verified example.

## Request Example

```json
{
  "jsonrpc": "2.0",
  "id": 22,
  "method": "eth_getBlockByNumber",
  "params": [
    "0x3f84b1",
    true
  ]
}
```

## Response Fields

This method returns no documented fields.

## Successful Response

```json
{
  "jsonrpc": "2.0",
  "result": {
    "number": "0x3f84b1",
    "hash": "0x8fccc43a1a50e7888b945a82c2c239908ead9ee4720c30774e9f58a2c40a3ad1",
    "parentHash": "0x3041ac8e04e37045be93ab6d430cf67ebe8a75523d140aadef9ed13683ed11b7",
    "nonce": "0x0000000000000000",
    "sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",
    "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
    "transactionsRoot": "0xd8532881acefb82a19bc0d109500c508ddde0a48763e5133ef59241e682cdc08",
    "stateRoot": "0x73444ba45ab5365cefe6ab486a854fca252313dce78ddb290e16ea6bba162e76",
    "receiptsRoot": "0x89b630ea3cdbcd0950d8ba0421d266be4b2af2229806e9ae52a387ab4cef5a97",
    "miner": "0xcf02b9ca488f8f6f4e28e37aa1bdd16b3f1b2ad8",
    "difficulty": "0x0",
    "totalDifficulty": "0x0",
    "extraData": "0x",
    "size": "0x279",
    "gasLimit": "0x4000000000000",
    "gasUsed": "0x4564ea",
    "timestamp": "0x672c91fa",
    "transactions": [
      {
        "blockHash": "0x8fccc43a1a50e7888b945a82c2c239908ead9ee4720c30774e9f58a2c40a3ad1",
        "blockNumber": "0x3f84b1",
        "from": "0x5d66ec78664f4a0b0929a41270316a6cd4d8bd4b",
        "gas": "0x4c4b40",
        "gasPrice": "0x3b9aca00",
        "hash": "0x0dc908c545bfefe9fd5b5198e39c1af2b3166e5e556a51f2efd55c4a449fa587",
        "input": "0xc14c9204000000000000000000000000000000000000000000000000000001930619e2a045544800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004176c0e69c01930619e2a00000002000000109c886e2a7ed5cf552ceb4d68ffb852fc04e0a01055016552a1810caffa1ee52702b8cccd149c9d6a61ad37b759e3f4be464d8cdd01f52c29055d88485e489fe1b45544800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004176c0e69c01930619e2a00000002000000151bfef864077e299879f09ddde98a3bd5e18b0f76038ef2f159fa841e2dbe093317ed9bfb4134f6a064de1c7f66e1f0dd64d13233d3b1907958583168a8ba4631b4254430000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006ce630dfee501930619e2a0000000200000016a56b8ce99eedd20dd230dc9cea28ccb27a83455c5a058750150db945dd08f532e8e0495bf5f2b0f5f72c2f2d898391852363a219b41f964964050720149461e1b4254430000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006ce62febb8d01930619e2a0000000200000010a78ef21ed2dbb7d94f8cbf46be9e4413ad64dc39482d0b9aec50ea48fa64123583775a5f9e065ccfe8867ee34314f0c7d2dfa79c3688d68658be2ea7e567d531c58545a00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003db82ea01930619e2a0000000200000013f08d6d551abc925e12f0e394776bf39f6b525cf7da28a2e14389c55ed8e323127743b2c86b02c2860174c2c8182675c40327813d67ee846a0886919ac3e89c31c58545a00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003db82ea01930619e2a000000020000001dbecf87431878794f047b813cdada29af88541ce656caa4d95008910970eed91431189604d3f9c4fb3a9bc629bf882171dd1be4e058ca9ea07e43036954bfeb11b00063137333039373432303132303623302e352e3123646174612d7061636b616765732d77726170706572000029000002ed57011e0000",
        "nonce": "0x1123fd",
        "to": "0xa2cca359c43839040cf3d230deb1689ab8db2dac",
        "transactionIndex": "0x0",
        "value": "0x0",
        "v": "0x14e76",
        "r": "0x98d3b2e5cff6d0a0facc6a13a2df8626aaccf1573d29e7b1d18521ba470d3a08",
        "s": "0x854b2712ea3568c5da1d7ab51d45c906e5f7f32b671bf69d56a03b2a1c7c9d9"
      }
    ],
    "uncles": [],
    "baseFeePerGas": "0x3b9aca00",
    "mixHash": "0x0000000000000000000000000000000000000000000000000000000000000000"
  },
  "id": 22
}
```

## Best Practices

Keep the recorded block height and address together when reproducing a historical example. Preserve RPC errors instead of replacing them with empty results.

## Code Examples

```bash
curl -X POST "https://api-etherlink-mainnet.n.dwellir.com/YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  --data-raw '{"jsonrpc":"2.0","id":22,"method":"eth_getBlockByNumber","params":["0x3f84b1",true]}'
```
