eth_getBlockByHash

Returns information about a given block by hash.

Parameters

  1. Blockhash - hash of the requested block.

  2. Boolean - If true it returns the full transaction objects; if false it returns only the hashes of the transactions.

Sample Request

curl https://lb.nodies.app/v1/<INSERT URL> \
   -H "x-api-key: <API-KEY>" \
   -X POST \
   -H "Content-Type: application/json" \
   -d '{ 
  "jsonrpc": "2.0",
  "method": "eth_getBlockByHash",
  "params": [
    "0x656fcfdec6065b932607243d2fab1e80963454f7e058af1238a0f8aa62598ad8",
    true
  ],
  "id": 1
}'

Sample Response

{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "difficulty": "0x0",
    "extraData": "0x",
    "gasLimit": "0x1312d00",
    "gasUsed": "0xff5fb",
    "hash": "0x656fcfdec6065b932607243d2fab1e80963454f7e058af1238a0f8aa62598ad8",
    "logsBloom": "0x00002000000000000000000000000000000002000000000000018000000000000000000000000000000000000100000000000000002000000000000000100000000000000800000000400008000000000000000000000000000600000000400000000000020002000000200000000a0000000000300004000000001000200000000200000000000100000000000000000000000000000000180000000000000000000000000000000000800004a000000000000040000000000000000008000000000002000100000000000000000000000080000000000000000000000024000000000000000000000000000000000000000000001000000000000000000000",
    "miner": "0x0000000000000000000000000000000000000000",
    "mixHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
    "nonce": "0x0000000000000000",
    "number": "0x6b330b",
    "parentHash": "0xa8bab2b1804558d27d93e41bd9c85aabf2077147a6750d039d3ff0b807f2ea35",
    "receiptsRoot": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",
    "sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",
    "size": "0x3298",
    "stateRoot": "0xe7fe54eb78c54db2c529e444358138126ce7932b658452577d9f2b588a8e7523",
    "timestamp": "0x65372170",
    "totalDifficulty": "0x0",
    "transactions": [
      {
        "blockHash": "0x656fcfdec6065b932607243d2fab1e80963454f7e058af1238a0f8aa62598ad8",
        "blockNumber": "0x6b330b",
        "from": "0xe93685f3bba03016f02bd1828badd6195988d950",
        "gas": "0x123ff4",
        "gasPrice": "0x47868c00",
        "hash": "0x051b249d53cda6b02b0fc73f822bf09ddba19d2f1917ef7c7802fef19c99549c",
        "input": "0x0508941e00000000000000000000000000000000000000000000000000000000000000a500000000000000000000000004866796aabb6b58e6bc4d91a2ae99105b2c58ae000000000000000000000000000000000000000000000000000000000003d090c7035aad2e0c8cdc3c0e7911c7b1cda5d672a8c06c6551606349c5475e0ca066c7035aad2e0c8cdc3c0e7911c7b1cda5d672a8c06c6551606349c5475e0ca06600000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000a5650ec938eda846e1ee3518f75a457382af52020000000000000000000000000000000000000000000000000000000000000094000000000000000000000000042b8289c97896529ec2fe49ba1a8b9c956a86cc00000000000002d400a56dd28c2c5b91dd63b4d4e78ecac713987837176800b104866796aabb6b58e6bc4d91a2ae99105b2c58ae000000000000000000000000a5650ec938eda846e1ee3518f75a457382af52020000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
        "nonce": "0xc2718",
        "to": "0xcb566e3b6934fa77258d68ea18e931fa75e1aaaa",
        "transactionIndex": "0x0",
        "value": "0xf8b0a10e470000",
        "type": "0x0",
        "chainId": "0x8ae",
        "v": "0x1180",
        "r": "0xbed76996fdeb5154f113b744401328068937c120eba436ca90f3af2295b5aa9",
        "s": "0x22a36da73871fa96c1b70c31232866346041eed8c59c2ab33fc50e0eb4779909"
      },
      {
        "blockHash": "0x656fcfdec6065b932607243d2fab1e80963454f7e058af1238a0f8aa62598ad8",
        "blockNumber": "0x6b330b",
        "from": "0xe93685f3bba03016f02bd1828badd6195988d950",
        "gas": "0x97718",
        "gasPrice": "0x47868c00",
        "hash": "0x2f7dd838107df24d315e218a33a8bdbb26a4da58d1f69eed60d9d04132e76592",
        "input": "0x252f7b01000000000000000000000000000000000000000000000000000000000000006a00000000000000000000000083c30eb8bc9ad7c56532895840039e62659896ea0000000000000000000000000000000000000000000000000000000000014c089add5a02519d1e0f5d8005cf3cc349e15fc403612c66a4835f2e814173c8437c9add5a02519d1e0f5d8005cf3cc349e15fc403612c66a4835f2e814173c8437c00000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000000d40000000000000000000000004d73adb72bc3dd368966edd0f0b2148401a178e2000000000000319b006a2f6f07cdcf3588944bf4c42ac74ff24bf56e759000b183c30eb8bc9ad7c56532895840039e62659896ea00000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000032cdc63449c0000000000000000000000000000000000000000000000000000000000000000014e1093de92181b70515f0e977f48728bfc9e42a40000000000000000000000000000000000000000000000000",
        "nonce": "0xc2719",
        "to": "0xcb566e3b6934fa77258d68ea18e931fa75e1aaaa",
        "transactionIndex": "0x1",
        "value": "0x0",
        "type": "0x0",
        "chainId": "0x8ae",
        "v": "0x1180",
        "r": "0x585927fae938fbabb117fe8c5474e9426567b5aaf1111630ae95593afc4e8577",
        "s": "0x7aae5144d7863808c262ea8a958576f200cdee5e8997439165091debced0044d"
      }
    ],
    "transactionsRoot": "0xd0bbe857219af7315eea477051b6a75715e0203b76ab18e41336b45834a5cd78",
    "uncles": []
  }
}

Last updated