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

# eth_getTransactionReceipt

> Returns the receipt of a transaction by transaction hash.

### Parameters

**chainId** `string` *required* (default: 10143)

Unique identifier for a blockchain network.

**id** `number` *required* (default: 1)

Request identifier used to match responses.

**jsonrpc** `string` *required* (default: 2.0)

JSON-RPC version.

**method** `string` *required* (default: eth\_getTransactionReceipt)

JSON-RPC method name.

**params** `object` *required*

Parameters for eth\_getTransactionByHash: \[transactionHash].

Positional parameters for `eth_getTransactionReceipt`:

<ul>
  <li>`params[0]`: 32 Bytes - Hash of the transaction.</li>
</ul>

### Returns

**result** `oneOf`

Receipt object returned after transaction execution. Can be a legacy receipt (pre-EIP-2718) or AccessList receipt (EIP-2930).

**variants**

**variant1** `object`

Legacy transaction receipt (pre-EIP-2718). Includes basic execution result and log data.

**properties**

**blockHash** `string`

32 Bytes - hash of the block where this transaction was included. Null when pending.

**blockNumber** `oneOf`

Block number where this transaction was included. Null when pending.

**variants**

**variant1** `integer`

**variant2** `string`

**contractAddress** `string`

20 Bytes - The contract address created, if the transaction was a contract creation. Null otherwise.

**cumulativeGasUsed** `integer`

The total amount of gas used when this transaction was executed in the block.

**from** `string`

20 Bytes - The address the transaction is sent from.

**to** `string`

20 Bytes - The address the transaction is directed to. (Optional when creating new contract)

**gasUsed** `integer`

The amount of gas used by this specific transaction alone.

**logs** `array`

Array of log objects generated by this transaction. Each log contains indexed topics and data.

**items**

**items\[]** `object`

**properties**

**address** `string`

Address from which this log originated.

**topics** `array`

Indexed log topics.

**items**

**items\[]** `string`

**data** `string`

Data portion of the log.

**blockNumber** `integer`

**transactionHash** `string`

**transactionIndex** `integer`

**blockHash** `string`

**logIndex** `integer`

**removed** `boolean`

Indicates whether this log was removed due to a chain reorg.

**logsBloom** `string`

256 Bytes - Bloom filter for logs/events generated during transaction execution.

**root** `string`

32 Bytes - Merkle root of the state trie after the transaction (optional after Byzantium).

**status** `string`

0x0 indicates failure, 0x1 indicates success. Set for blocks after Byzantium, null before.

**transactionHash** `string`

32 Bytes - Hash of the transaction.

**transactionIndex** `integer`

The transaction's index position in the block. Null when pending.

**variant2** `allOf`

Legacy transaction receipt (pre-EIP-2718). Includes basic execution result and log data.

**variants**

**variant1** `object`

Legacy transaction receipt (pre-EIP-2718). Includes basic execution result and log data.

**variant2** `object`

AccessList receipt (EIP-2930). Extends legacy receipt and adds `type: 0x1`.

**properties**

**type** `string`

Receipt type. Fixed to "0x1" for EIP-2930 access list receipts.

```bash Curl theme={null}
curl --request POST \
  --url https://api.uniblock.dev/uni/v1/json-rpc?chainId=10143 \
  --header 'content-type: application/json' \
  --data '{
    "id": 1,
    "jsonrpc": "2.0",
    "method": "eth_getTransactionReceipt",
    "params": [
      "0x444172bef57ad978655171a8af2cfd89baa02a97fcb773067aef7794d6913374"
    ]
  }'
```

```json Success theme={null}
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "blockHash": "0x67c0303244ae4beeec329e0c66198e8db8938a94d15a366c7514626528abfc8c",
    "blockNumber": "0x6914b0",
    "contractAddress": "0x471a8bf3fd0dfbe20658a97155388cec674190bf",
    "from": "0xc931d93e97ab07fe42d923478ba2465f2",
    "to": null,
    "cumulativeGasUsed": "0x158e33",
    "gasUsed": "0xba2e6",
    "logs": [],
    "__truncated": true
  }
}
```


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