π¨βπ» Get Ethereum transaction receipt by hash
Code samples
GET /api/v1/eth/transactions/{hash}/receipt
Returns transaction receipt using eth_getTransactionReceipt.
π οΈ Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| hash | path | string | true | Ethereum transaction hash. |
Example responses
200 Response
{
"transactionHash": "string",
"transactionIndex": "string",
"blockHash": "string",
"blockNumber": "string",
"from": "string",
"to": "string",
"cumulativeGasUsed": "string",
"effectiveGasPrice": "string",
"gasUsed": "string",
"contractAddress": "string",
"logs": [
{
"address": "string",
"topics": [
"string"
],
"data": "string",
"blockNumber": "string",
"transactionHash": "string",
"transactionIndex": "string",
"blockHash": "string",
"logIndex": "string",
"removed": true
}
],
"logsBloom": "string",
"status": "string",
"type": "string"
}
404 Response
{
"error": "Transaction receipt not found"
}
π Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | Ethereum transaction receipt | Inline |
| 404 | Not Found | Transaction receipt not found | Inline |
| 500 | Internal Server Error | Could not connect to ETH node | None |
π Response Schema
Status Code 200
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| Β» transactionHash | string | false | none | none |
| Β» transactionIndex | string | false | none | none |
| Β» blockHash | string | false | none | none |
| Β» blockNumber | string | false | none | none |
| Β» from | string | false | none | none |
| » to | string¦null | false | none | none |
| Β» cumulativeGasUsed | string | false | none | none |
| Β» effectiveGasPrice | string | false | none | none |
| Β» gasUsed | string | false | none | none |
| » contractAddress | string¦null | false | none | none |
| Β» logs | [object] | false | none | none |
| »» address | string | false | none | none |
| »» topics | [string] | false | none | none |
| »» data | string | false | none | none |
| »» blockNumber | string | false | none | none |
| »» transactionHash | string | false | none | none |
| »» transactionIndex | string | false | none | none |
| »» blockHash | string | false | none | none |
| »» logIndex | string | false | none | none |
| »» removed | boolean | false | none | none |
| Β» logsBloom | string | false | none | none |
| Β» status | string | false | none | 0x1 for success, 0x0 for failure. |
| Β» type | string | false | none | none |
Status Code 404
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| Β» error | string | false | none | none |