> ## 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](/nodeapi/about/billing).

***

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

## 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": "0x10a02",
    "logs": [],
    "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...",
    "transactionHash": "0xbefd965068aaabb9b8ebdc9d3ed81f5b3b2bc7d2c7c28d34da6bcbab2b4748f5",
    "transactionIndex": "0x1",
    "blockHash": "0x801f9b08c43e9363292af641cd5a950bfa74e248314f2967a1bbc9693ed8089e",
    "blockNumber": "0x3a64324",
    "gasUsed": "0x5578",
    "effectiveGasPrice": "0x7a120",
    "blobGasUsed": "0x9c40",
    "from": "0xcabba9e7f4b3a885c5aa069f88469ac711dd4acc",
    "to": "0x0000000000000000000000000000000000000000",
    "contractAddress": null,
    "l1GasPrice": "0x40cd05a",
    "l1GasUsed": "0x640",
    "l1Fee": "0x257cecc4",
    "l1BaseFeeScalar": "0x7d0",
    "l1BlobBaseFee": "0x45c49c",
    "l1BlobBaseFeeScalar": "0xdbba0",
    "daFootprintGasScalar": "0x190"
  }
}
```

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


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