> ## 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).

***

## 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: [
  "0x1edcfafe2394941ab6a70191a5ee7674c23c2d511d897ed7361c9455745621db"
]
```

## 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": {
    "blockHash": "0xb4ac8c880ad6ab31b3b37546f5ad56b43ce07844e5bab88de23c2c969d32e50f",
    "blockNumber": "0x84dee8",
    "contractAddress": null,
    "cumulativeGasUsed": "0xb391",
    "effectiveGasPrice": "0x1dceeba0",
    "from": "0xe5e078fbc78341a8de4b6cfde95b624323c6ef36",
    "gasUsed": "0xb391",
    "gasUsedForL1": "0x0",
    "l1BlockNumber": "0x315e65c",
    "logs": [
      {
        "address": "0x1742b836bd6acb3f996e17f4b5b3bd172d97a93b",
        "topics": [
          "0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925",
          "0x000000000000000000000000e5e078fbc78341a8de4b6cfde95b624323c6ef36",
          "0x000000000000000000000000787344f1ac74d78772b5d9314551b3b727ee914b"
        ],
        "data": "0x000000000000000000000000000000000000000000002dc6b0b11b80bc86e9c0",
        "blockNumber": "0x84dee8",
        "transactionHash": "0x1edcfafe2394941ab6a70191a5ee7674c23c2d511d897ed7361c9455745621db",
        "transactionIndex": "0x1",
        "blockHash": "0xb4ac8c880ad6ab31b3b37546f5ad56b43ce07844e5bab88de23c2c969d32e50f",
        "blockTimestamp": "0x6b003329",
        "logIndex": "0x0",
        "removed": false
      }
    ],
    "logsBloom": "0x00000000000800000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000200000...",
    "status": "0x1",
    "to": "0x1742b836bd6acb3f996e17f4b5b3bd172d97a93b",
    "transactionHash": "0x1edcfafe2394941ab6a70191a5ee7674c23c2d511d897ed7361c9455745621db",
    "transactionIndex": "0x1",
    "type": "0x2"
  }
}
```

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

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


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