# eth_getTransactionByHash: parameters, returns and CU

> Original page: https://docs.blockvectra.com/en/api/json-rpc/methods/eth_getTransactionByHash/

## Summary

Return a transaction by its hash.

## Compute Units (CU) and Pricing

CU weight, price and per-chain availability are shown on the method page: https://docs.blockvectra.com/en/api/json-rpc/methods/eth_getTransactionByHash/

## Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| `transactionHash` | `HASH` | 32-byte transaction hash as 0x-prefixed hex. |

## Returns

- **Type**: `OBJECT|NULL`
- **Description**: Transaction object including its block context; null when the transaction is unknown.

## Notes

A pending transaction may already be in the pool, but its block fields stay empty until it is included.

## Request Example

```bash
curl -X POST "https://dev-api.blockvectra.network/v1/robinhood_mainnet" \
  -H 'Content-Type: application/json' \
  -H 'x-api-key: <api_key>' \
  -d '{
    "jsonrpc": "2.0",
    "method": "eth_getTransactionByHash",
    "params": [
      "<transactionHash>"
    ],
    "id": 1
  }'
```
