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 accumulatedGasUsedtype : stringPattern :- ^0x([1-9a-f][0-9a-f]{0,63}|0)$
- blockHash blockHashtype : stringPattern :- ^0x[0-9,a-f,A-F]{64}$
- burntGasFee burntGasFeetype : stringPattern :- ^0x([1-9a-f][0-9a-f]{0,63}|0)$
- contractCreated contractCreatedtype : stringPattern :- ^(NET\d+|CFX|CFXTEST)(:TYPE\..*|):[ABCDEFGHJKMNPRSTUVWXYZ0123456789]{42}$
- effectiveGasPrice effectiveGasPricetype : stringPattern :- ^0x([1-9a-f][0-9a-f]{0,63}|0)$
- epochNumber epochNumbertype : stringPattern :- ^0x([1-9a-f][0-9a-f]{0,15}|0)$
- from fromtype : stringPattern :- ^(NET\d+|CFX|CFXTEST)(:TYPE\..*|):[ABCDEFGHJKMNPRSTUVWXYZ0123456789]{42}$
- gasCoveredBySponsor gasCoveredBySponsortype : boolean
- gasFee gasFeetype : stringPattern :- ^0x([1-9a-f][0-9a-f]{0,63}|0)$
- gasUsed gasUsedtype : stringPattern :- ^0x([1-9a-f][0-9a-f]{0,63}|0)$
- index indextype : stringPattern :- ^0x([1-9a-f][0-9a-f]{0,15}|0)$
- logs logstype : array- items[x]Logtype : object- address addresstype : stringPattern :- ^(NET\d+|CFX|CFXTEST)(:TYPE\..*|):[ABCDEFGHJKMNPRSTUVWXYZ0123456789]{42}$
- blockHash blockHashtype : stringPattern :- ^0x[0-9,a-f,A-F]{64}$
- data datatype : stringPattern :- ^0x[0-9a-f]*$
- epochNumber epochNumbertype : stringPattern :- ^0x([1-9a-f][0-9a-f]{0,63}|0)$
- logIndex logIndextype : stringPattern :- ^0x([1-9a-f][0-9a-f]{0,63}|0)$
- space spacetype : stringPossible values :- native
- ethereum
 
- topics topicstype : array- items[x]H256type : stringPattern :- ^0x[0-9,a-f,A-F]{64}$
 
- transactionHash transactionHashtype : stringPattern :- ^0x[0-9,a-f,A-F]{64}$
- transactionIndex transactionIndextype : stringPattern :- ^0x([1-9a-f][0-9a-f]{0,63}|0)$
- transactionLogIndex transactionLogIndextype : stringPattern :- ^0x([1-9a-f][0-9a-f]{0,63}|0)$
 
 
- logsBloom logsBloomtype : stringPattern :- ^0x[0-9,a-f,A-F]{1024}$
- outcomeStatus outcomeStatustype : stringPattern :- ^0x([1-9a-f][0-9a-f]{0,15}|0)$
- space spacetype : stringPossible values :- native
- ethereum
 
- stateRoot stateRoottype : stringPattern :- ^0x[0-9,a-f,A-F]{64}$
- storageCollateralized storageCollateralizedtype : stringPattern :- ^0x([1-9a-f][0-9a-f]{0,15}|0)$
- storageCoveredBySponsor storageCoveredBySponsortype : boolean
- storageReleased storageReleasedtype : array- items[x]StorageChangetype : object- address addresstype : stringPattern :- ^(NET\d+|CFX|CFXTEST)(:TYPE\..*|):[ABCDEFGHJKMNPRSTUVWXYZ0123456789]{42}$
- collaterals collateralstype : stringPattern :- ^0x([1-9a-f][0-9a-f]{0,15}|0)$
 
 
- to totype : stringPattern :- ^(NET\d+|CFX|CFXTEST)(:TYPE\..*|):[ABCDEFGHJKMNPRSTUVWXYZ0123456789]{42}$
- transactionHash transactionHashtype : stringPattern :- ^0x[0-9,a-f,A-F]{64}$
- transactionType transactionTypetype : stringPattern :- ^0x([1-9a-f][0-9a-f]{0,15}|0)$
- txExecErrorMsg txExecErrorMsgtype : 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"
}