> ## Documentation Index
> Fetch the complete documentation index at: https://docs.validationcloud.io/llms.txt
> Use this file to discover all available pages before exploring further.

# eth_getTransactionReceipt

Returns the receipt of a transaction by transaction hash. Note that the receipt is not available for pending transactions.

This method will use `40` [Compute Units](https://docs.validationcloud.io/nodeapi/about/billing.md).

***

> [!NOTE]
>
> World Chain Mainnet keeps receipts for the last 10,064 blocks, about 5.6 hours at World Chain's 2-second block time. For older blocks this method returns `null`, not an error. Blocks and transactions themselves are kept back to genesis.

## Reference: [Here](https://ethereum.org/en/developers/docs/apis/json-rpc/#eth_gettransactionreceipt)

## **Parameters**

1. `DATA`, 32 Bytes - hash of a transaction

```javascript theme={"theme":{"light":"github-light","dark":"github-dark-default"}}
params: [
  "0x976ede826ce145939ff1d6ba66d01aa5c8e9aea7fba57db427949a4516f870ce"
]
```

## Returns

`Object` - A transaction receipt object, or `null` when no receipt was found:

* `transactionHash` : `DATA`, 32 Bytes - hash of the transaction.
* `transactionIndex`: `QUANTITY` - integer of the transactions index position in the block.
* `blockHash`: `DATA`, 32 Bytes - hash of the block where this transaction was in.
* `blockNumber`: `QUANTITY` - block number where this transaction was in.
* `from`: `DATA`, 20 Bytes - address of the sender.
* `to`: `DATA`, 20 Bytes - address of the receiver. null when its a contract creation transaction.
* `cumulativeGasUsed` : `QUANTITY` - The total amount of gas used when this transaction was executed in the block.
* `effectiveGasPrice` : `QUANTITY` - The sum of the base fee and tip paid per unit of gas.
* `gasUsed` : `QUANTITY` - The amount of gas used by this specific transaction alone.
* `contractAddress` : `DATA`, 20 Bytes - The contract address created, if the transaction was a contract creation, otherwise `null`.
* `logs`: `Array` - Array of log objects, which this transaction generated.
* `logsBloom`: `DATA`, 256 Bytes - Bloom filter for light clients to quickly retrieve related logs.
* `type`: `DATA` - integer of the transaction type, `0x00` for legacy transactions, `0x01` for access list types, `0x02` for dynamic fees. It also returns *either* :
* `root` : `DATA` 32 bytes of post-transaction stateroot (pre Byzantium)
* `status`: `QUANTITY` either `1` (success) or `0` (failure)

```json theme={"theme":{"light":"github-light","dark":"github-dark-default"}}
// Result
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "type": "0x2",
    "status": "0x1",
    "cumulativeGasUsed": "0x6c478",
    "logs": [
      {
        "address": "0x0000000071727de22e5e9d8baf0edac6f37da032",
        "topics": [
          "0xbb47ee3e183a558b1a2ff0874b079f3fc5478b7454eacf2bfc5af2ff5878f972"
        ],
        "data": "0x",
        "blockHash": "0x8aa29d1d553e01967d72dea6f60cf1c07c6563c85fa673ebb1e5e17dd27d6bd9",
        "blockNumber": "0x24bcf00",
        "blockTimestamp": "0x6b1298d7",
        "transactionHash": "0x976ede826ce145939ff1d6ba66d01aa5c8e9aea7fba57db427949a4516f870ce",
        "transactionIndex": "0x1",
        "logIndex": "0x0",
        "removed": false
      },
      {
        "address": "0xa380ef7797fb48ddc63a085b815a74981e6a3dbf",
        "topics": [
          "0xb648d3644f584ed1c2232d53c46d87e693586486ad0d1175f8656013110b714e"
        ],
        "data": "0x00000000000000000000000075cf11467937ce3f2f357ce24ffc3dbf8fd5c22600000000000000000000000038869bf66a61cf6bdb996a6ae40d5853fd43b526...",
        "blockHash": "0x8aa29d1d553e01967d72dea6f60cf1c07c6563c85fa673ebb1e5e17dd27d6bd9",
        "blockNumber": "0x24bcf00",
        "blockTimestamp": "0x6b1298d7",
        "transactionHash": "0x976ede826ce145939ff1d6ba66d01aa5c8e9aea7fba57db427949a4516f870ce",
        "transactionIndex": "0x1",
        "logIndex": "0x1",
        "removed": false
      },
      {
        "address": "0xad3ee0342cb753c2b39579f9db292a9ae94b153e",
        "topics": [
          "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
          "0x000000000000000000000000a380ef7797fb48ddc63a085b815a74981e6a3dbf",
          "0x000000000000000000000000f5e968d554471816d50b593bd5fa7c6ddc4deb58"
        ],
        "data": "0x0000000000000000000000000000000000000000000000008ac7230489e80000",
        "blockHash": "0x8aa29d1d553e01967d72dea6f60cf1c07c6563c85fa673ebb1e5e17dd27d6bd9",
        "blockNumber": "0x24bcf00",
        "blockTimestamp": "0x6b1298d7",
        "transactionHash": "0x976ede826ce145939ff1d6ba66d01aa5c8e9aea7fba57db427949a4516f870ce",
        "transactionIndex": "0x1",
        "logIndex": "0x2",
        "removed": false
      }
    ],
    "logsBloom": "0x0000000000101000000000002040000000000000000000000000000000000020000800000000000000000001000000000000000c000002008000025000000010...",
    "transactionHash": "0x976ede826ce145939ff1d6ba66d01aa5c8e9aea7fba57db427949a4516f870ce",
    "transactionIndex": "0x1",
    "blockHash": "0x8aa29d1d553e01967d72dea6f60cf1c07c6563c85fa673ebb1e5e17dd27d6bd9",
    "blockNumber": "0x24bcf00",
    "gasUsed": "0x60fd6",
    "effectiveGasPrice": "0x16e360",
    "blobGasUsed": "0x2cba0",
    "from": "0x009dcf67cc6d08394d72ddff30c14b7012896c29",
    "to": "0x0000000071727de22e5e9d8baf0edac6f37da032",
    "contractAddress": null,
    "l1GasPrice": "0x14879c87",
    "l1GasUsed": "0x1ca7",
    "l1Fee": "0x71500932d",
    "l1BaseFeeScalar": "0x21f9",
    "l1BlobBaseFee": "0x13612e5",
    "l1BlobBaseFeeScalar": "0xdd3ef",
    "daFootprintGasScalar": "0x190"
  }
}
```

```bash title="mainnet" theme={"theme":{"light":"github-light","dark":"github-dark-default"}}
curl https://mainnet.worldchain.validationcloud.io/v1/<YOUR_API_KEY_HERE> \
    -X POST \
    -H "Content-Type: application/json" \
    -d '{"jsonrpc":"2.0","method":"eth_getTransactionReceipt","params":["0x976ede826ce145939ff1d6ba66d01aa5c8e9aea7fba57db427949a4516f870ce"],"id":1}'
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.