trace_filter
Retrieves traces of all transactions that match specific filter criteria
Request
Examples
curl https://rpc.xone.org \
-X POST \
-H "Content-Type: application/json" \
--data '{"method":"trace_filter","params":[{"fromBlock":"0xccb943","toBlock":"0xccb943","fromAddress":["0xEdC763b3e418cD14767b3Be02b667619a6374076"]}],"id":1,"jsonrpc":"2.0"}'Response
200 OK
{
"jsonrpc": "2.0",
"id": 1,
"result": [
{
"action": {
"callType": "call",
"from": "0xEdC763b3e418cD14767b3Be02b667619a6374076",
"gas": "0x15f90",
"input": "0x",
"to": "0x8d12a197cb00d4747a1fe03395095ce2a5cc6819",
"value": "0x0"
},
"blockHash": "0x5c0b4b4d3a64311a802cd51e0dd0f656b5d4016a2cf2f3d780e8b1cfe1b6ac2e",
"blockNumber": 13498499,
"result": {
"gasUsed": "0x0",
"output": "0x"
},
"subtraces": 0,
"traceAddress": [],
"transactionHash": "0x17104ac9d3312d8c136b7f44d4b8b47852618065ebfa534bd2d3b5ef218ca1f3",
"transactionPosition": 1,
"type": "call"
}
]
}Request params
| Name | Type | Description |
|---|---|---|
| id | integer | Request identifier |
| jsonrpc | string | JSON-RPC version |
| method | string | API method name |
| Parameters | array | |
| fromBlock | string | Specifies the starting block number or tag (e.g., "latest", "earliest") from which to begin the trace. |
| toBlock | string | Specifies the ending block number or tag up to which to include in the trace. |
| fromAddress | string | An array of sender addresses to filter by. |
| toAddress | string | An array of receiver addresses to filter by. |
| after | string | The offset number for pagination purposes. |
| count | string | The number of traces to retrieve starting from the offset. |
Response
200
Array of trace objects matching the filter criteria, each containing details about the transaction trace| Name | Type | Description |
|---|---|---|
| Parameters | object | |
| id | integer | |
| jsonrpc | string | |
| result | object |