Saltar al contenido principal

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
string
Match 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
string
Match 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
string
Match pattern:
^(NET\d+|CFX|CFXTEST)(:TYPE\..*|):[ABCDEFGHJKMNPRSTUVWXYZ0123456789]{42}$
gasCoveredBySponsor
boolean
gasFee
string
Match pattern:
^0x([1-9a-f][0-9a-f]{0,63}|0)$
gasUsed
string
Match pattern:
^0x([1-9a-f][0-9a-f]{0,63}|0)$
index
string
Match pattern:
^0x([1-9a-f][0-9a-f]{0,15}|0)$
logs
array[Log]
address
string
Match pattern:
^(NET\d+|CFX|CFXTEST)(:TYPE\..*|):[ABCDEFGHJKMNPRSTUVWXYZ0123456789]{42}$
blockHash
string or null
Match pattern:
^0x[0-9,a-f,A-F]{64}$
data
string
Match 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
string
Match pattern:
^0x[0-9,a-f,A-F]{1024}$
outcomeStatus
string
Match pattern:
^0x([1-9a-f][0-9a-f]{0,15}|0)$
space
Allowed values:
nativeethereum
stateRoot
string
Match pattern:
^0x[0-9,a-f,A-F]{64}$
storageCollateralized
string
Match pattern:
^0x([1-9a-f][0-9a-f]{0,15}|0)$
storageCoveredBySponsor
boolean
storageReleased
array[StorageChange]
address
string
Match pattern:
^(NET\d+|CFX|CFXTEST)(:TYPE\..*|):[ABCDEFGHJKMNPRSTUVWXYZ0123456789]{42}$
collaterals
string
Match 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
string
Match 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

Endpoint

Params

tx_hash


Request

curl -X POST --data \
'{
"method": "cfx_getTransactionReceipt",
"params": [
null
],
"jsonrpc": "2.0",
"id": 1
}' \
-H "Content-Type: application/json" \
https://test.confluxrpc.com