Pinax
    Standard Ethereum JSON-RPC 2.0
    Resources & endpoints
    blocks

    eth_getBlockByHash

    Get block by hash

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

    Required parameters

    NameTypeDescription
    blockHashrequired
    hash32-byte block hash.
    e.g. 0x9b8f4e3a3f2c1d8e7a6b5c4d3e2f1a0b9c8d7e6f5a4b3c2d1e0f9a8b7c6d5e4f
    fullTransactionsrequired
    booleanIf true, returns full transactions; if false, hashes.
    e.g. false

    Request body

    {
      "jsonrpc": "2.0",
      "id": 1,
      "method": "eth_getBlockByHash",
      "params": [
        "0x9b8f4e3a3f2c1d8e7a6b5c4d3e2f1a0b9c8d7e6f5a4b3c2d1e0f9a8b7c6d5e4f",
        false
      ]
    }

    Response

    200 OK

    Block object or null.

    {
      "jsonrpc": "2.0",
      "id": 1,
      "result": {
        "number": "0x14a2bff",
        "hash": "0x9b8f4e3a...",
        "transactions": []
      }
    }