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

## 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": "0x3709faaaca912e00982dd7acf8e6dbddb460aebd59c459741ca9c697acb8f509",
    "blockNumber": "0x688bcff",
    "contractAddress": null,
    "cumulativeGasUsed": "0xc25c",
    "effectiveGasPrice": "0x600aea7d00",
    "from": "0x5efc8fe3947db9079667e62e01dbbafbfe12db10",
    "gasUsed": "0xc25c",
    "logs": [
      {
        "address": "0x4a275c4d99bf3747a459362df44d3fcc413d4dd5",
        "topics": [
          "0xa387c3601f61e88a17e341cfebf7ab826a8cd4544cd72b2dc0cf12988e77754b"
        ],
        "data": "0x0000000000000000000000000000000000000000000000000ec63e30e0f25f2c000000000000000000000000000000000000000000000001b123b2a5a806ed1d...",
        "blockNumber": "0x688bcff",
        "transactionHash": "0x00e01f3921f23810ec343184f83f3b247551f94bbf764bfa21c42ccf4a7130a1",
        "transactionIndex": "0x0",
        "blockHash": "0x3709faaaca912e00982dd7acf8e6dbddb460aebd59c459741ca9c697acb8f509",
        "blockTimestamp": "0x6b1158d5",
        "logIndex": "0x0",
        "removed": false
      }
    ],
    "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000040000000...",
    "status": "0x1",
    "to": "0x4a275c4d99bf3747a459362df44d3fcc413d4dd5",
    "transactionHash": "0x00e01f3921f23810ec343184f83f3b247551f94bbf764bfa21c42ccf4a7130a1",
    "transactionIndex": "0x0",
    "type": "0x2"
  }
}
```

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


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