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