eth_getBlockReceipts-polygon

Get all transaction receipts for a given block on Ethereum.

๐Ÿšง

Note

This method has been deprecated on Geth, only available on Erigon.

Parameters

  • QUANTITY|TAG - integer block number, or the string "latest", "earliest" or "pending", see the default block parameter
curl https://polygon-mainnet-archive.allthatnode.com/8U3JLUhzIDg3GShvy9hkCCSYkLGc11kj \
--request POST \
--header "Content-Type: application/json" \
--data '{
    "jsonrpc":"2.0",
    "id":1,
    "method":"eth_getBlockReceipts",
    "params":[
       "latest"
    ]
}'

Returns

  • Object - A block object, or null when no block was found:
    • number: QUANTITY - the block number. null when its pending block.
    • hash: DATA, 32 Bytes - hash of the block. null when its pending block.
    • parentHash: DATA, 32 Bytes - hash of the parent block.
    • nonce: DATA, 8 Bytes - hash of the generated proof-of-work. null when its pending block.
    • sha3Uncles: DATA, 32 Bytes - SHA3 of the uncles data in the block.
    • logsBloom: DATA, 256 Bytes - the bloom filter for the logs of the block. null when its pending block.
    • transactionsRoot: DATA, 32 Bytes - the root of the transaction trie of the block.
    • stateRoot: DATA, 32 Bytes - the root of the final state trie of the block.
    • receiptsRoot: DATA, 32 Bytes - the root of the receipts trie of the block.
    • miner: DATA, 20 Bytes - the address of the beneficiary to whom the mining rewards were given.
    • difficulty: QUANTITY - integer of the difficulty for this block.
    • totalDifficulty: QUANTITY - integer of the total difficulty of the chain until this block.
    • extraData: DATA - the "extra data" field of this block.
    • size: QUANTITY - integer the size of this block in bytes.
    • gasLimit: QUANTITY - the maximum gas allowed in this block.
    • gasUsed: QUANTITY - the total used gas by all transactions in this block.
    • timestamp: QUANTITY - the unix timestamp for when the block was collated.
    • transactions: Array - Array of transaction objects, or 32 Bytes transaction hashes depending on the last given parameter.
    • uncles: Array - Array of uncle hashes.
{
  "blockHash": "0x558e5c517c13ec8a0bf9e1e23da48602d35c6af972b5a86d5adad4252abeff24",
  "blockNumber": "0x2b9b2bc",
  "contractAddress": null,
  "cumulativeGasUsed": "0x95bcd9",
  "effectiveGasPrice": "0x111fd1e800",
  "from": "0x6616682e08db863f7a88c571c2cd2dbd5235be77",
  "gasUsed": "0x1c9cb",
  "logs": [
    {
      "address": "0xba6666b118f8303f990f3519df07e160227cce87",
      "topics": [
        "0xc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62",
        "0x000000000000000000000000bb5f9ade0023ae87bdcd2268bdd74a2711654bdb",
        "0x0000000000000000000000000000000000000000000000000000000000000000",
        "0x0000000000000000000000006616682e08db863f7a88c571c2cd2dbd5235be77"
      ],
      "data": "0x00000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000018",
      "blockNumber": "0x2b9b2bc",
      "transactionHash": "0xdcafd64634bd47877a9b8a1bcca79f9c7262ec333f752dbd6de19e4f739d4888",
      "transactionIndex": "0x29",
      "blockHash": "0x558e5c517c13ec8a0bf9e1e23da48602d35c6af972b5a86d5adad4252abeff24",
      "logIndex": "0x101",
      "removed": false
    },
    {
      "address": "0xba6666b118f8303f990f3519df07e160227cce87",
      "topics": [
        "0x8e2e00b8edcdb3d21d952277d11c372d103cb1e2e2d5bb8fa77ed426496b9bb1"
      ],
      "data": "0x0000000000000000000000006616682e08db863f7a88c571c2cd2dbd5235be7700000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000018",
      "blockNumber": "0x2b9b2bc",
      "transactionHash": "0xdcafd64634bd47877a9b8a1bcca79f9c7262ec333f752dbd6de19e4f739d4888",
      "transactionIndex": "0x29",
      "blockHash": "0x558e5c517c13ec8a0bf9e1e23da48602d35c6af972b5a86d5adad4252abeff24",
      "logIndex": "0x102",
      "removed": false
    },
    {
      "address": "0xba6666b118f8303f990f3519df07e160227cce87",
      "topics": [
        "0xc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62",
        "0x000000000000000000000000bb5f9ade0023ae87bdcd2268bdd74a2711654bdb",
        "0x0000000000000000000000000000000000000000000000000000000000000000",
        "0x0000000000000000000000004d233b9066f3a5cdb3dbd2e887c29144c0152315"
      ],
      "data": "0x00000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000001",
      "blockNumber": "0x2b9b2bc",
      "transactionHash": "0xdcafd64634bd47877a9b8a1bcca79f9c7262ec333f752dbd6de19e4f739d4888",
      "transactionIndex": "0x29",
      "blockHash": "0x558e5c517c13ec8a0bf9e1e23da48602d35c6af972b5a86d5adad4252abeff24",
      "logIndex": "0x103",
      "removed": false
    },
    {
      "address": "0xba6666b118f8303f990f3519df07e160227cce87",
      "topics": [
        "0x8e2e00b8edcdb3d21d952277d11c372d103cb1e2e2d5bb8fa77ed426496b9bb1"
      ],
      "data": "0x0000000000000000000000004d233b9066f3a5cdb3dbd2e887c29144c015231500000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000001",
      "blockNumber": "0x2b9b2bc",
      "transactionHash": "0xdcafd64634bd47877a9b8a1bcca79f9c7262ec333f752dbd6de19e4f739d4888",
      "transactionIndex": "0x29",
      "blockHash": "0x558e5c517c13ec8a0bf9e1e23da48602d35c6af972b5a86d5adad4252abeff24",
      "logIndex": "0x104",
      "removed": false
    },
    {
      "address": "0xbb5f9ade0023ae87bdcd2268bdd74a2711654bdb",
      "topics": [
        "0xbe6a4aec6674d392cfce09709b6642eafb628164ba1362d0eeb3ecfac38f9110",
        "0x0000000000000000000000006616682e08db863f7a88c571c2cd2dbd5235be77",
        "0x0000000000000000000000000000000000000000000000000000000000000008"
      ],
      "data": "0x0000000000000000000000000000000000000000000000000000000000000019",
      "blockNumber": "0x2b9b2bc",
      "transactionHash": "0xdcafd64634bd47877a9b8a1bcca79f9c7262ec333f752dbd6de19e4f739d4888",
      "transactionIndex": "0x29",
      "blockHash": "0x558e5c517c13ec8a0bf9e1e23da48602d35c6af972b5a86d5adad4252abeff24",
      "logIndex": "0x105",
      "removed": false
    },
    {
      "address": "0xbb5f9ade0023ae87bdcd2268bdd74a2711654bdb",
      "topics": [
        "0x84cd032dd3272bec9dd42a3ca89e17a15193b98929afa9c5e58357cb840baa3e",
        "0x0000000000000000000000006616682e08db863f7a88c571c2cd2dbd5235be77"
      ],
      "data": "0x0000000000000000000000000000000000000000000000000000000000170054",
      "blockNumber": "0x2b9b2bc",
      "transactionHash": "0xdcafd64634bd47877a9b8a1bcca79f9c7262ec333f752dbd6de19e4f739d4888",
      "transactionIndex": "0x29",
      "blockHash": "0x558e5c517c13ec8a0bf9e1e23da48602d35c6af972b5a86d5adad4252abeff24",
      "logIndex": "0x106",
      "removed": false
    },
    {
      "address": "0x0000000000000000000000000000000000001010",
      "topics": [
        "0x4dfe1bbbcf077ddc3e01291eea2d5c70c2b422b415d95645b9adcfd678cb1d63",
        "0x0000000000000000000000000000000000000000000000000000000000001010",
        "0x0000000000000000000000006616682e08db863f7a88c571c2cd2dbd5235be77",
        "0x0000000000000000000000007c7379531b2aee82e4ca06d4175d13b9cbeafd49"
      ],
      "data": "0x000000000000000000000000000000000000000000000000000b2ccb1510659f0000000000000000000000000000000000000000000000009d7e501038b10bac000000000000000000000000000000000000000000023f36a9e890bd0ec879be0000000000000000000000000000000000000000000000009d73234523a0a60d000000000000000000000000000000000000000000023f36a9f3bd8823d8df5d",
      "blockNumber": "0x2b9b2bc",
      "transactionHash": "0xdcafd64634bd47877a9b8a1bcca79f9c7262ec333f752dbd6de19e4f739d4888",
      "transactionIndex": "0x29",
      "blockHash": "0x558e5c517c13ec8a0bf9e1e23da48602d35c6af972b5a86d5adad4252abeff24",
      "logIndex": "0x107",
      "removed": false
    }
  ],
  "logsBloom": "0x000000000000000000000000000000000000000000000000080000200000004002000000000000000000000000000000000080000000800000000002000020000000000000000000000000000000008000200000004a0000200108000000000200000000020020000000000000000800000000404000000081000200000000000080000000000080000000000000000000000000000000000000200000000000200002000000000080000000000000000000000000004000000000000000004040000000000000000001000000200002000000000008000000100000000020000000000000000000000000000000000000080000000000000000080000140000",
  "status": "0x1",
  "to": "0xbb5f9ade0023ae87bdcd2268bdd74a2711654bdb",
  "transactionHash": "0xdcafd64634bd47877a9b8a1bcca79f9c7262ec333f752dbd6de19e4f739d4888",
  "transactionIndex": "0x29",
  "type": "0x2"
}

Try Yourself

Language
Click Try It! to start a request and see the response here!