cfx_getTransactionReceipt
Params
(1)1. tx_hash (required)
string
Match pattern:
^0x[0-9,a-f,A-F]{64}$
Result
(cfx_getTransactionReceipt_result)object or null
accumulatedGasUsed
string or null
Match pattern:
^0x([1-9a-f][0-9a-f]{0,63}|0)$
blockHash
stringMatch pattern:
^0x[0-9,a-f,A-F]{64}$
burntGasFee
string or null
Match pattern:
^0x([1-9a-f][0-9a-f]{0,63}|0)$
contractCreated
string or null
Match pattern:
^(NET\d+|CFX|CFXTEST)(:TYPE\..*|):[ABCDEFGHJKMNPRSTUVWXYZ0123456789]{42}$
effectiveGasPrice
stringMatch pattern:
^0x([1-9a-f][0-9a-f]{0,63}|0)$
epochNumber
string or null
Match pattern:
^0x([1-9a-f][0-9a-f]{0,15}|0)$
from
stringMatch pattern:
^(NET\d+|CFX|CFXTEST)(:TYPE\..*|):[ABCDEFGHJKMNPRSTUVWXYZ0123456789]{42}$
gasCoveredBySponsor
booleangasFee
stringMatch pattern:
^0x([1-9a-f][0-9a-f]{0,63}|0)$
gasUsed
stringMatch pattern:
^0x([1-9a-f][0-9a-f]{0,63}|0)$
index
stringMatch pattern:
^0x([1-9a-f][0-9a-f]{0,15}|0)$
logs
array[Log]address
stringMatch pattern:
^(NET\d+|CFX|CFXTEST)(:TYPE\..*|):[ABCDEFGHJKMNPRSTUVWXYZ0123456789]{42}$
blockHash
string or null
Match pattern:
^0x[0-9,a-f,A-F]{64}$
data
stringMatch pattern:
^0x[0-9a-f]*$
epochNumber
string or null
Match pattern:
^0x([1-9a-f][0-9a-f]{0,63}|0)$
logIndex
string or null
Match pattern:
^0x([1-9a-f][0-9a-f]{0,63}|0)$
space
Allowed values:
nativeethereum
topics
array[string]transactionHash
string or null
Match pattern:
^0x[0-9,a-f,A-F]{64}$
transactionIndex
string or null
Match pattern:
^0x([1-9a-f][0-9a-f]{0,63}|0)$
transactionLogIndex
string or null
Match pattern:
^0x([1-9a-f][0-9a-f]{0,63}|0)$
logsBloom
stringMatch pattern:
^0x[0-9,a-f,A-F]{1024}$
outcomeStatus
stringMatch pattern:
^0x([1-9a-f][0-9a-f]{0,15}|0)$
space
Allowed values:
nativeethereum
stateRoot
stringMatch pattern:
^0x[0-9,a-f,A-F]{64}$
storageCollateralized
stringMatch pattern:
^0x([1-9a-f][0-9a-f]{0,15}|0)$
storageCoveredBySponsor
booleanstorageReleased
array[StorageChange]address
stringMatch pattern:
^(NET\d+|CFX|CFXTEST)(:TYPE\..*|):[ABCDEFGHJKMNPRSTUVWXYZ0123456789]{42}$
collaterals
stringMatch pattern:
^0x([1-9a-f][0-9a-f]{0,15}|0)$
to
string or null
Match pattern:
^(NET\d+|CFX|CFXTEST)(:TYPE\..*|):[ABCDEFGHJKMNPRSTUVWXYZ0123456789]{42}$
transactionHash
stringMatch pattern:
^0x[0-9,a-f,A-F]{64}$
transactionType
string or null
Match pattern:
^0x([1-9a-f][0-9a-f]{0,15}|0)$
txExecErrorMsg
string or null
Match pattern:
^.*$
Examples
Request
curl -X POST --data \
'{
"method": "cfx_getTransactionReceipt",
"params": [
"0x0000000000000000000000000000000000000000000000000000000000000000"
],
"jsonrpc": "2.0",
"id": 1
}' \
-H "Content-Type: application/json" \
localhost:12539
Result
null