trace 命名空间
Through trace
RPCs we can know the transaction executive details. To use these RPC Conflux archive node need set two additional config:
executive_trace = true
public_rpc_apis = "safe,trace" // or public_rpc_apis = "all"
Note: An existing archive node need clear all blockchain data to open executive_trace
config.
Note: From Conflux-rust v2.0 trace RPC have some breaking change, Read below for details.
Trace object
A Trace
trace object contain below field:
type
:STRING
- Type of trace. Avaliable value iscall
,create
,call_result
,create_result
,internal_transfer_action
action
:OBJECT
- Trace's action info,different type trace's action have different fields.
例如:
{
"action": {
"callType": "call",
"from": "CFXTEST:TYPE.USER:AAJSUKECFVZF2MG8GZYR9GNAKZYSX9P6VU29DWZ6T2",
"gas": "0x171e2",
"input": "0x9c312cfd",
"to": "CFXTEST:TYPE.CONTRACT:ACE8BSDS7WN52KHYK29NEBZWFPVZ5RPPD28KCXETJ8",
"value": "0x1d6e3"
},
"type": "call"
}
Check this document to get detail explanation of Conflux trace