eth_getTransactionReceipt
Returns the receipt information of a transaction by its hash.
- CURL
curl --request POST \
--url https://evm.confluxrpc.com \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--data '
{
"id": 1,
"jsonrpc": "2.0",
"params": ["0xb0312f4972128d4bfee5162ee10cdbea6d0252c337db0c88fed6ce4c16ce8008"],
"method": "eth_getTransactionReceipt"
}'
Params
transactionhash required
Schema
type : string
Pattern :
^0x[0-9,a-f,A-F]{64}$
Result
Receipt
type : object
blockHash blockHash
type : stringPattern :^0x[0-9,a-f,A-F]{64}$
blockNumber blockNumber
type : stringPattern :^0x([1-9a-f][0-9a-f]{0,63}|0)$
burntGasFee burntGasFee
type : stringPattern :^0x([1-9a-f][0-9a-f]{0,63}|0)$
contractAddress contractAddress
type : stringPattern :^0x[0-9,a-f,A-F]{40}$
cumulativeGasUsed cumulativeGasUsed
type : stringPattern :^0x([1-9a-f][0-9a-f]{0,63}|0)$
effectiveGasPrice effectiveGasPrice
type : stringPattern :^0x([1-9a-f][0-9a-f]{0,63}|0)$
from from
type : stringPattern :^0x[0-9,a-f,A-F]{40}$
gasUsed gasUsed
type : stringPattern :^0x([1-9a-f][0-9a-f]{0,63}|0)$
logs logs
type : arrayitems[x]
Logtype : objectaddress address
type : stringPattern :^0x[0-9,a-f,A-F]{40}$
blockHash blockHash
type : stringPattern :^0x[0-9,a-f,A-F]{64}$
blockNumber blockNumber
type : stringPattern :^0x([1-9a-f][0-9a-f]{0,63}|0)$
data data
type : stringPattern :^0x[0-9a-f]*$
logIndex logIndex
type : stringPattern :^0x([1-9a-f][0-9a-f]{0,63}|0)$
removed removed
type : booleantopics topics
type : arrayitems[x]
H256type : stringPattern :^0x[0-9,a-f,A-F]{64}$
transactionHash transactionHash
type : stringPattern :^0x[0-9,a-f,A-F]{64}$
transactionIndex transactionIndex
type : stringPattern :^0x([1-9a-f][0-9a-f]{0,63}|0)$
transactionLogIndex transactionLogIndex
type : stringPattern :^0x([1-9a-f][0-9a-f]{0,63}|0)$
logsBloom logsBloom
type : stringPattern :^0x[0-9,a-f,A-F]{512}$
statusCode statusCode
type : stringPattern :^0x([1-9a-f][0-9a-f]{0,15}|0)$
to to
type : stringPattern :^0x[0-9,a-f,A-F]{40}$
transactionHash transactionHash
type : stringPattern :^0x[0-9,a-f,A-F]{64}$
transactionIndex transactionIndex
type : stringPattern :^0x([1-9a-f][0-9a-f]{0,63}|0)$
transactionType transactionType
type : stringPattern :^0x([1-9a-f][0-9a-f]{0,15}|0)$
txExecErrorMsg txExecErrorMsg
type : stringPattern :^.*$
Examples
- eth_getTransactionReceipt
- eth_getTransactionReceipt
- eth_getTransactionReceipt
- eth_getTransactionReceipt
- eth_getTransactionReceipt
Request
curl -X POST --data \
'{
"jsonrpc": "2.0",
"id": 1,
"method": "eth_getTransactionReceipt",
"params": [
"0xb0312f4972128d4bfee5162ee10cdbea6d0252c337db0c88fed6ce4c16ce8008"
]
}' \
-H "Content-Type: application/json" \
localhost:12539
Response
{
"blockHash": "0x1768f524493543ac12785a8dd50e5a5b2c5b1ebaaef4f6202a5832783fad13bc",
"blockNumber": "0x43543a1",
"contractAddress": null,
"cumulativeGasUsed": "0xcee2a",
"effectiveGasPrice": "0x1",
"from": "0x8d86bc475bedcb08179c5e6a4d494ebd3b44ea8b",
"gasUsed": "0x54d0a",
"logs": [
{
"address": "0x0c4be6aa667df48de54ba174be7948875fdf152b",
"blockHash": "0x1768f524493543ac12785a8dd50e5a5b2c5b1ebaaef4f6202a5832783fad13bc",
"blockNumber": "0x43543a1",
"data": "0x0000000000000000000000000000000000000000000000000000000000000416000000000000000000000000e4cff55f193b3493f1aa6811738309b2acf6c963",
"logIndex": "0xa",
"removed": false,
"topics": [
"0xdec847db058c9c012e0f3dbe2b99e05cfa4c693f61a7d8bc64652a68913cbfff"
],
"transactionHash": "0xb0312f4972128d4bfee5162ee10cdbea6d0252c337db0c88fed6ce4c16ce8008",
"transactionIndex": "0x2",
"transactionLogIndex": "0x0"
},
{
"address": "0x0c4be6aa667df48de54ba174be7948875fdf152b",
"blockHash": "0x1768f524493543ac12785a8dd50e5a5b2c5b1ebaaef4f6202a5832783fad13bc",
"blockNumber": "0x43543a1",
"data": "0x000000000000000000000000000000000000000000000000000000000000041f000000000000000000000000e4cff55f193b3493f1aa6811738309b2acf6c963",
"logIndex": "0xb",
"removed": false,
"topics": [
"0xcabaf9c102f83746b27ae932f638eebfaf5ea7d014edd20ab14dec3768a8f55c"
],
"transactionHash": "0xb0312f4972128d4bfee5162ee10cdbea6d0252c337db0c88fed6ce4c16ce8008",
"transactionIndex": "0x2",
"transactionLogIndex": "0x1"
},
{
"address": "0xe4cff55f193b3493f1aa6811738309b2acf6c963",
"blockHash": "0x1768f524493543ac12785a8dd50e5a5b2c5b1ebaaef4f6202a5832783fad13bc",
"blockNumber": "0x43543a1",
"data": "0x000000000000000000000000000000000000000000000000000000000000041f0000000000000000000000000000000000000000000000000000000000036ee8",
"logIndex": "0xc",
"removed": false,
"topics": [
"0x177160e50d083725209651bf251badbab2b70d078dda089acd2101eefccd82c7",
"0x0000000000000000000000008d86bc475bedcb08179c5e6a4d494ebd3b44ea8b"
],
"transactionHash": "0xb0312f4972128d4bfee5162ee10cdbea6d0252c337db0c88fed6ce4c16ce8008",
"transactionIndex": "0x2",
"transactionLogIndex": "0x2"
}
],
"logsBloom": "0x00000000000000000000000000000000000000020040000000000042000000000000000000000000000000000000000000000000000000000000000000000000000000004004000000000000000000000000002000000000000000000000040000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000040000400000000000000000000000000000000000000000004000000000000000000000000000000000000000020080000000000000000000002000000000008000000000000000000000000000000020000000000000000002000000000000000000000000",
"status": "0x1",
"to": "0xe4cff55f193b3493f1aa6811738309b2acf6c963",
"transactionHash": "0xb0312f4972128d4bfee5162ee10cdbea6d0252c337db0c88fed6ce4c16ce8008",
"transactionIndex": "0x2",
"txExecErrorMsg": null
}
Request
curl -X POST --data \
'{
"jsonrpc": "2.0",
"id": 1,
"method": "eth_getTransactionReceipt",
"params": [
"0x0000000000000000000000000000000000000000000000000000000000000000"
]
}' \
-H "Content-Type: application/json" \
localhost:12539
Response
null
Request
curl -X POST --data \
'{
"jsonrpc": "2.0",
"id": 1,
"method": "eth_getTransactionReceipt",
"params": [
"0x2bfbdfc2a0907aa6c5f9d64c26b43e8cd65452af5ff64d2b2e90dcaf4a5d2ca1"
]
}' \
-H "Content-Type: application/json" \
localhost:12539
Response
{
"blockHash": "0x81c63a093c3d31c7b7ebe69ca91e22de98da1ae0046973a41f6e9a8d86dac099",
"blockNumber": "0x4335b90",
"contractAddress": null,
"cumulativeGasUsed": "0x5f92cc",
"effectiveGasPrice": "0x1",
"from": "0x1e6309dc46a2a4936abda54b69c91d7a3c75a39e",
"gasUsed": "0x5208",
"logs": [],
"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"status": "0x1",
"to": "0x0000000000000000000000000000000000000000",
"transactionHash": "0x2bfbdfc2a0907aa6c5f9d64c26b43e8cd65452af5ff64d2b2e90dcaf4a5d2ca1",
"transactionIndex": "0x2",
"txExecErrorMsg": null
}
Request
curl -X POST --data \
'{
"jsonrpc": "2.0",
"id": 1,
"method": "eth_getTransactionReceipt",
"params": [
"0x825cbc85aadf04f525c3a8fefa6c062014a894009e429204660a73706909f918"
]
}' \
-H "Content-Type: application/json" \
localhost:12539
Response
{
"blockHash": "0x10416864c9a5690fd9b80e1834ed41c414529b3e3a46a2e5993ad951319fe723",
"blockNumber": "0x4335b9a",
"contractAddress": "0x7253cb7bb788f91b18e20b61e708cb0c98383fc8",
"cumulativeGasUsed": "0x2b8984",
"effectiveGasPrice": "0x1",
"from": "0x1e6309dc46a2a4936abda54b69c91d7a3c75a39e",
"gasUsed": "0x27b8f4",
"logs": [
{
"address": "0x7253cb7bb788f91b18e20b61e708cb0c98383fc8",
"blockHash": "0x10416864c9a5690fd9b80e1834ed41c414529b3e3a46a2e5993ad951319fe723",
"blockNumber": "0x4335b9a",
"data": "0x000000000000000000000000000000000000000000115eec47f6cf7e35000000",
"logIndex": "0x5",
"removed": false,
"topics": [
"0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
"0x0000000000000000000000000000000000000000000000000000000000000000",
"0x0000000000000000000000001e6309dc46a2a4936abda54b69c91d7a3c75a39e"
],
"transactionHash": "0x825cbc85aadf04f525c3a8fefa6c062014a894009e429204660a73706909f918",
"transactionIndex": "0x1",
"transactionLogIndex": "0x0"
}
],
"logsBloom": "0x00000000000000000000000000000000000020000000000000000000000000000000000000000100040000000000000000000000000000000000000000000000000000000008000000000008000000000000000000000000000000000000000000000000020000000000000000000800000000000000000000000010000000000000000000080000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000020000000000000000000000000",
"status": "0x1",
"to": null,
"transactionHash": "0x825cbc85aadf04f525c3a8fefa6c062014a894009e429204660a73706909f918",
"transactionIndex": "0x1",
"txExecErrorMsg": null
}
Request
curl -X POST --data \
'{
"jsonrpc": "2.0",
"id": 1,
"method": "eth_getTransactionReceipt",
"params": [
"0x6546a8d066a69fb78f96901daa34347be705a736017e86cea71eeec4d40819f6"
]
}' \
-H "Content-Type: application/json" \
localhost:12539
Response
{
"blockHash": "0x199ab67c87a39c45acb2ed878ae1b6d3bae22fba16f51dced036babf9b6daf62",
"blockNumber": "0x4335ba4",
"contractAddress": null,
"cumulativeGasUsed": "0xe78fd",
"effectiveGasPrice": "0x1",
"from": "0x1e6309dc46a2a4936abda54b69c91d7a3c75a39e",
"gasUsed": "0xb71b0",
"logs": [],
"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"status": "0x1",
"to": "0x1e6309dc46a2a4936abda54b69c91d7a3c75a39e",
"transactionHash": "0x6546a8d066a69fb78f96901daa34347be705a736017e86cea71eeec4d40819f6",
"transactionIndex": "0x1",
"txExecErrorMsg": null
}