trace_rawTransaction
Executes a raw transaction and returns detailed trace information about its execution
Request
Examples
curl https://rpc.xone.org \
-X POST \
-H "Content-Type: application/json" \
--data '{"method":"trace_rawTransaction","params":["RAW_TRANSACTION_DATA",["trace"]],"id":1,"jsonrpc":"2.0"}'
Response
200 OK
{
"jsonrpc": "2.0",
"id": 1,
"result": [
{
"action": {
"callType": "call",
"from": "0xEdC763b3e418cD14767b3Be02b667619a6374076",
"gas": "0x76c0",
"input": "0x",
"to": "0x95aD61b0a150d79219dCF64E1E6Cc01f0B64C4cE",
"value": "0x0"
},
"blockHash": "0x1e3b87c5ea233b9d8c19ad7d7beaf0fa8dd3d74157b1441a13f8a18e176a11db",
"blockNumber": 13328707,
"result": {
"gasUsed": "0x5208",
"output": "0x"
},
"subtraces": 0,
"traceAddress": [],
"transactionHash": "0x17104ac9d3312d8c136b7f44d4b8b47852618065ebfa534bd2d3b5ef218ca1f3",
"transactionPosition": 0,
"type": "call"
}
// Additional traces can be included here
]
}
Request params
Name | Type | Description |
---|---|---|
id | integer | Request identifier |
jsonrpc | string | JSON-RPC version |
method | string | API method name |
Parameters | array | |
data | string | The raw transaction data, encoded as a hexadecimal string. |
array | array | The raw signed transaction data, provided as an array of objects. |
Response
200
The trace results, including detailed execution traces such as opcodes executed, state changes, and call stack informationName | Type | Description |
---|---|---|
Parameters | object | |
id | integer | |
jsonrpc | string | |
result | object |