Sigil documentation
ReferenceJSON-RPC

sigil_getLaborOfferEvents

Fetch labor offer/claim audit events.

Method

sigil_getLaborOfferEvents 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.

Fetch labor offer/claim audit events.

Request binding

Source handler: rpc_labor::handle_get_labor_offer_events in sigil/node/sigil-node/src/rpc_labor.rs, line 309.

The handler directly reads these named fields: fromHeight, from_height, toHeight, to_height. Additional typed parsing, aliases and nested validation are defined by its request types. Field presence alone does not establish optionality.

Parsing excerpt

These source excerpts show binding and validation; they are not runnable client code.

        .or_else(|| req.params.get("fromHeight"))
        .and_then(Value::as_u64)
        .unwrap_or(0);

        .or_else(|| req.params.get("toHeight"))
        .and_then(Value::as_u64)
        .unwrap_or(u64::MAX);

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.

On this page