Pinax
    Standard Ethereum JSON-RPC 2.0
    Resources & endpoints
    blocks

    eth_getBlockByNumber

    Get block by number

    Returns a block matching the given number or tag.
    POST
    https://eth.rpc.pinax.network/v1/<API_KEY>/

    Required parameters

    NameTypeDescription
    blockrequired
    blockBlock number (hex) or tag.
    e.g. latest
    fullTransactionsrequired
    booleanIf true, returns full transaction objects; if false, returns hashes only.
    e.g. false

    Request body

    {
      "jsonrpc": "2.0",
      "id": 1,
      "method": "eth_getBlockByNumber",
      "params": [
        "latest",
        false
      ]
    }

    Response

    200 OK

    Block object or null.

    {
      "jsonrpc": "2.0",
      "id": 1,
      "result": {
        "number": "0x14a2bff",
        "hash": "0x9b8f4e3a...",
        "parentHash": "0x7a3c1...",
        "timestamp": "0x6537a8b0",
        "miner": "0x4838b106fce9647bdf1e7877bf73ce8b0bad5f97",
        "gasLimit": "0x1c9c380",
        "gasUsed": "0x12a05f2",
        "baseFeePerGas": "0x3a3529440",
        "transactions": [
          "0xabc123...",
          "0xdef456..."
        ]
      }
    }