sigil_getOwnerNfts
List all NFTs (across collections) owned by a DID, with pagination.
Method
sigil_getOwnerNfts 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 all NFTs (across collections) owned by a DID, with pagination.
Request binding
Source handler: rpc_nft::handle_get_owner_nfts in sigil/node/sigil-node/src/rpc_nft.rs, line 141.
The handler directly reads these named fields: limit, offset. 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.
let owner_did = match extract_string_param(&req.params, 0, "owner_did") {
Some(s) => s,
None => return RpcResponse::error(req.id.clone(), -32602, "missing 'owner_did' parameter"),
};
.or_else(|| req.params.get(1))
.and_then(|v| v.as_u64())
.map(|n| (n as usize).min(MAX_LIMIT))
.unwrap_or(DEFAULT_LIMIT);
.or_else(|| req.params.get(2))
.and_then(|v| v.as_u64())
.map(|n| n as usize)
.unwrap_or(0);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.