sigil_getDexEvents
List recent native DEX events.
Method
sigil_getDexEvents is registered in the canonical JSON-RPC catalog. Use POST /rpc, Content-Type: application/json, JSON-RPC 2.0 and a caller-controlled request id. Node RPC profile, build feature and runtime activation checks still apply.
List recent native DEX events.
Request binding
Source handler: rpc_dex::handle_get_dex_events in sigil/node/sigil-node/src/rpc_dex.rs, line 223.
The handler uses no directly named params.get fields, or delegates input parsing to a typed helper. Use the request types below rather than assuming an empty parameter object.
Parsing excerpt
These source excerpts show binding and validation; they are not runnable client code.
let pool_id = extract_string_param(&req.params, 0, "pool_id");
let limit = extract_u64_param(&req.params, 1, "limit")
.map(|n| (n as usize).min(MAX_LIMIT))
.unwrap_or(DEFAULT_LIMIT);Responses and failures
Check HTTP status, parse the JSON-RPC envelope, reject error, and require result on success. Preserve large base-unit integers without floating-point rounding. A catalog method does not bypass authentication, capability, policy or activation requirements.