cfx_getTransactionReceipt
- CURL
curl --request POST \
--url https://main.confluxrpc.com \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--data '
{
"id": 1,
"jsonrpc": "2.0",
"params": ["0x0000000000000000000000000000000000000000000000000000000000000000"],
"method": "cfx_getTransactionReceipt"
}'
Params
tx_hash required
Schema
type : string
Pattern :
^0x[0-9,a-f,A-F]{64}$
Result
Schema
type : object
accumulatedGasUsed accumulatedGasUsed
type : stringPattern :^0x([1-9a-f][0-9a-f]{0,63}|0)$
blockHash blockHash
type : stringPattern :^0x[0-9,a-f,A-F]{64}$
burntGasFee burntGasFee
type : stringPattern :^0x([1-9a-f][0-9a-f]{0,63}|0)$
contractCreated contractCreated
type : stringPattern :^(NET\d+|CFX|CFXTEST)(:TYPE\..*|):[ABCDEFGHJKMNPRSTUVWXYZ0123456789]{42}$
effectiveGasPrice effectiveGasPrice
type : stringPattern :^0x([1-9a-f][0-9a-f]{0,63}|0)$
epochNumber epochNumber
type : stringPattern :^0x([1-9a-f][0-9a-f]{0,15}|0)$
from from
type : stringPattern :^(NET\d+|CFX|CFXTEST)(:TYPE\..*|):[ABCDEFGHJKMNPRSTUVWXYZ0123456789]{42}$
gasCoveredBySponsor gasCoveredBySponsor
type : booleangasFee gasFee
type : stringPattern :^0x([1-9a-f][0-9a-f]{0,63}|0)$
gasUsed gasUsed
type : stringPattern :^0x([1-9a-f][0-9a-f]{0,63}|0)$
index index
type : stringPattern :^0x([1-9a-f][0-9a-f]{0,15}|0)$
logs logs
type : arrayitems[x]
Logtype : objectaddress address
type : stringPattern :^(NET\d+|CFX|CFXTEST)(:TYPE\..*|):[ABCDEFGHJKMNPRSTUVWXYZ0123456789]{42}$
blockHash blockHash
type : stringPattern :^0x[0-9,a-f,A-F]{64}$
data data
type : stringPattern :^0x[0-9a-f]*$
epochNumber epochNumber
type : stringPattern :^0x([1-9a-f][0-9a-f]{0,63}|0)$
logIndex logIndex
type : stringPattern :^0x([1-9a-f][0-9a-f]{0,63}|0)$
space space
type : stringPossible values :native
ethereum
topics 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]{1024}$
outcomeStatus outcomeStatus
type : stringPattern :^0x([1-9a-f][0-9a-f]{0,15}|0)$
space space
type : stringPossible values :native
ethereum
stateRoot stateRoot
type : stringPattern :^0x[0-9,a-f,A-F]{64}$
storageCollateralized storageCollateralized
type : stringPattern :^0x([1-9a-f][0-9a-f]{0,15}|0)$
storageCoveredBySponsor storageCoveredBySponsor
type : booleanstorageReleased storageReleased
type : arrayitems[x]
StorageChangetype : objectaddress address
type : stringPattern :^(NET\d+|CFX|CFXTEST)(:TYPE\..*|):[ABCDEFGHJKMNPRSTUVWXYZ0123456789]{42}$
collaterals collaterals
type : stringPattern :^0x([1-9a-f][0-9a-f]{0,15}|0)$
to to
type : stringPattern :^(NET\d+|CFX|CFXTEST)(:TYPE\..*|):[ABCDEFGHJKMNPRSTUVWXYZ0123456789]{42}$
transactionHash transactionHash
type : stringPattern :^0x[0-9,a-f,A-F]{64}$
transactionType transactionType
type : stringPattern :^0x([1-9a-f][0-9a-f]{0,15}|0)$
txExecErrorMsg txExecErrorMsg
type : stringPattern :^.*$
Examples
- cfx_getTransactionReceipt
- cfx_getTransactionReceipt
- cfx_getTransactionReceipt
- cfx_getTransactionReceipt
Request
curl -X POST --data \
'{
"jsonrpc": "2.0",
"id": 1,
"method": "cfx_getTransactionReceipt",
"params": [
"0x0000000000000000000000000000000000000000000000000000000000000000"
]
}' \
-H "Content-Type: application/json" \
localhost:12539
Response
null
Request
curl -X POST --data \
'{
"jsonrpc": "2.0",
"id": 1,
"method": "cfx_getTransactionReceipt",
"params": [
"0xaf35f1b3ceede1f26d81241b46450c836d481b6b01ce5829ce6e686358c1f7bf"
]
}' \
-H "Content-Type: application/json" \
localhost:12539
Response
{
"blockHash": "0x0751c946613a66dd2e5f9698c3666ede8d5b3d35aaa07378bc0afc2be05e6e72",
"burntGasFee": "0x98cb8c52800",
"contractCreated": null,
"effectiveGasPrice": "0x3b9aca00",
"epochNumber": "0x27fce",
"from": "CFXTEST:TYPE.USER:AAPYWAAAAAAAAAAAAAAAAAAAAAAAAAAUAEUTRS455H",
"gasCoveredBySponsor": false,
"gasFee": "0x1319718a5000",
"gasUsed": "0x5208",
"index": "0x0",
"logs": [],
"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"outcomeStatus": "0x0",
"stateRoot": "0xc87a7c2c0c3508f39dbfceeeeed6605757789a45cbc050b3b2a0cd022f7ade5a",
"storageCollateralized": "0x0",
"storageCoveredBySponsor": false,
"storageReleased": [],
"to": "CFXTEST:TYPE.USER:AAPYWAAAAAAAAAAAAAAAAAAAAAAAAAAUAEUTRS455H",
"transactionHash": "0xc04aceb6ebeaa67fa63445f1130269ce48913144e8c200f2fdb1a96d9e39c7b7",
"txExecErrorMsg": null,
"type": "0x0"
}
Request
curl -X POST --data \
'{
"jsonrpc": "2.0",
"id": 1,
"method": "cfx_getTransactionReceipt",
"params": [
"0xad1b8a95f43d903a400900e0af752bcf4b684136a125f2dcd4ac5be27e54d5f9"
]
}' \
-H "Content-Type: application/json" \
localhost:12539
Response
{
"blockHash": "0xf5b0cc1fbec2ed6c1afbaa6329f6e57c9e542f21859a96b71b335b44e79089a1",
"burntGasFee": "0x98cb8c52800",
"contractCreated": null,
"effectiveGasPrice": "0x3b9aca00",
"epochNumber": "0x27ec0",
"from": "CFXTEST:TYPE.USER:AAPYWAAAAAAAAAAAAAAAAAAAAAAAAAAUAEUTRS455H",
"gasCoveredBySponsor": false,
"gasFee": "0x1319718a5000",
"gasUsed": "0x5208",
"index": "0x0",
"logs": [],
"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"outcomeStatus": "0x0",
"stateRoot": "0xb461af71848697bdb35893583e28e4781aeaf4b3027c678ed2f8002c92e79e82",
"storageCollateralized": "0x0",
"storageCoveredBySponsor": false,
"storageReleased": [],
"to": "CFXTEST:TYPE.USER:AAPYWAAAAAAAAAAAAAAAAAAAAAAAAAAUAEUTRS455H",
"transactionHash": "0x2268313b45a382afc2cd1b7d3a376a0d3e5518a9d16b00a8372615809c484c48",
"txExecErrorMsg": null,
"type": "0x1"
}
Request
curl -X POST --data \
'{
"jsonrpc": "2.0",
"id": 1,
"method": "cfx_getTransactionReceipt",
"params": [
"0x4a84dcf81aff3efbc93ba697463755641c5bc3e9facf501ae3d2c17d9071202e"
]
}' \
-H "Content-Type: application/json" \
localhost:12539
Response
{
"blockHash": "0x0e016000906a5afe1c4533cf952597a5c93cd70b8b814f8a41f56985de304161",
"burntGasFee": "0x98cb8c52800",
"contractCreated": null,
"effectiveGasPrice": "0x3b9aca00",
"epochNumber": "0x27e57",
"from": "CFXTEST:TYPE.USER:AAPYWAAAAAAAAAAAAAAAAAAAAAAAAAAUAEUTRS455H",
"gasCoveredBySponsor": false,
"gasFee": "0x1319718a5000",
"gasUsed": "0x5208",
"index": "0x0",
"logs": [],
"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"outcomeStatus": "0x0",
"stateRoot": "0xe8217db77a78febd38f45d128205830d34597849b16be1b82522a6ef2cb5d30e",
"storageCollateralized": "0x0",
"storageCoveredBySponsor": false,
"storageReleased": [],
"to": "CFXTEST:TYPE.USER:AAPYWAAAAAAAAAAAAAAAAAAAAAAAAAAUAEUTRS455H",
"transactionHash": "0x327f6fc8204a2f34bda69c16bcf3ed530d538876fab11e601b77d5bfdb1e3082",
"txExecErrorMsg": null,
"type": "0x2"
}