eth_getTransactionReceipt
Retrieves the receipt of a specific transaction by its hash
Request
Examples
curl https://rpc.xone.org \
-X POST \
-H "Content-Type: application/json" \
--data '{"method":"eth_getTransactionReceipt","params":["0x85d995eba9763907fdf35cd2034144dd9d53ce32cbec21349d4b12823c6860c5"],"id":1,"jsonrpc":"2.0"}'
Response
200 OK
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"transactionHash": "0x8fc90a6c3ee3001cdcbbb685b4fbe67b1fa2bec575b15b0395fea5540d0901ae",
"blockHash": "0x58a945e1558810523df00490ff28cbe111b37851c44679ce5be1eeaebb4b4907",
"blockNumber": "0xeb8822",
"logsBloom": "0x00000000000100000000008000000000000000000000000000000000000000000010000000000000001000000000000000000000000000000000000000000000000000000000000008008008000000000000000000000000000000000000000000000000000000000000000000004000000000000000000000000010000000000000000000000000000000000000000000000000010002000000000000000400000000000400200001000000000000000000000000040000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004000000000000000000",
"gasUsed": "0x1a14b",
"contractAddress": null,
"cumulativeGasUsed": "0x76c649",
"transactionIndex": "0x4e",
"from": "0x5067c042e35881843f2b31dfc2db1f4f272ef48c",
"to": "0x3ee18b2214aff97000d974cf647e7c347e8fa585",
"type": "0x0",
"effectiveGasPrice": "0x2d7003407",
"logs": [
{
"blockHash": "0x58a945e1558810523df00490ff28cbe111b37851c44679ce5be1eeaebb4b4907",
"address": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
"logIndex": "0x6c",
"data": "0x000000000000000000000000000000000000000000000000000000001debea42",
"removed": false,
"topics": [
"0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
"0x0000000000000000000000005067c042e35881843f2b31dfc2db1f4f272ef48c",
"0x0000000000000000000000003ee18b2214aff97000d974cf647e7c347e8fa585"
],
"blockNumber": "0xeb8822",
"transactionIndex": "0x4e",
"transactionHash": "0x8fc90a6c3ee3001cdcbbb685b4fbe67b1fa2bec575b15b0395fea5540d0901ae"
},
{
"blockHash": "0x58a945e1558810523df00490ff28cbe111b37851c44679ce5be1eeaebb4b4907",
"address": "0x98f3c9e6e3face36baad05fe09d375ef1464288b",
"logIndex": "0x6d",
"data": "0x000000000000000000000000000000000000000000000000000000000001371e000000000000000000000000000000000000000000000000000000006eca00000000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000000f000000000000000000000000000000000000000000000000000000000000008501000000000000000000000000000000000000000000000000000000001debea42000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48000267c46aa713cfe47608dd1c16f8a0325208df084c3cbebf9f366ad0eafc2653e4000100000000000000000000000000000000000000000000000000000000001e8542000000000000000000000000000000000000000000000000000000",
"removed": false,
"topics": [
"0x6eb224fb001ed210e379b335e35efe88672a8ce935d981a6896b27ffdf52a3b2",
"0x0000000000000000000000003ee18b2214aff97000d974cf647e7c347e8fa585"
],
"blockNumber": "0xeb8822",
"transactionIndex": "0x4e",
"transactionHash": "0x8fc90a6c3ee3001cdcbbb685b4fbe67b1fa2bec575b15b0395fea5540d0901ae"
}
],
"status": "0x1"
}
}
Request params
Name | Type | Description |
---|---|---|
id | integer | Request identifier |
jsonrpc | string | JSON-RPC version |
method | string | API method name |
Parameters | array of strings | |
hash | string | The hash of the transaction for which the receipt is to be retrieved. |
Response
200
The transaction receipt object if the transaction is found, or null if not.Name | Type | Description |
---|---|---|
Parameters | object | |
id | integer | |
jsonrpc | string | |
result | object |