π¨βπ» Get Ethereum transaction by hash
Code samples
GET /api/v1/eth/transactions/{hash}
Returns transaction details using eth_getTransactionByHash.
π οΈ Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| hash | path | string | true | Ethereum transaction hash. |
Example responses
200 Response
{
"hash": "string",
"nonce": "string",
"blockHash": "string",
"blockNumber": "string",
"transactionIndex": "string",
"from": "string",
"to": "string",
"value": "string",
"gas": "string",
"gasPrice": "string",
"maxFeePerGas": "string",
"maxPriorityFeePerGas": "string",
"input": "string",
"type": "string",
"chainId": "string",
"v": "string",
"r": "string",
"s": "string"
}
404 Response
{
"error": "Transaction not found"
}
π Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | Ethereum transaction | Inline |
| 404 | Not Found | Transaction not found | Inline |
| 500 | Internal Server Error | Could not connect to ETH node | None |
π Response Schema
Status Code 200
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| Β» hash | string | false | none | Transaction hash. |
| Β» nonce | string | false | none | Nonce as hex QUANTITY. |
| » blockHash | string¦null | false | none | none |
| » blockNumber | string¦null | false | none | none |
| » transactionIndex | string¦null | false | none | none |
| Β» from | string | false | none | Sender address. |
| » to | string¦null | false | none | Recipient address, or null for contract creation. |
| Β» value | string | false | none | Amount of wei sent, as hex QUANTITY. |
| Β» gas | string | false | none | none |
| » gasPrice | string¦null | false | none | none |
| » maxFeePerGas | string¦null | false | none | none |
| » maxPriorityFeePerGas | string¦null | false | none | none |
| Β» input | string | false | none | Input data (call data) as hex string. |
| Β» type | string | false | none | Transaction type (0x0 legacy, 0x1, 0x2, 0x3...) |
| » chainId | string¦null | false | none | none |
| Β» v | string | false | none | none |
| Β» r | string | false | none | none |
| Β» s | string | false | none | none |
Status Code 404
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| Β» error | string | false | none | none |