sigil-node · rpc_nft
Source declarations, signatures and documentation for rpc_nft.
Source: sigil/node/sigil-node/src/rpc_nft.rs. SHA-256: fb53a370a92106c3027aa28fb80dec8df28e5bc056e0344b7f666fa8fbbba3b7.
This reference follows declared source modules, retains conditional attributes, and includes public declarations and implementation methods. Private-module re-exports and trait resolution require the compiler; this is a source reference, not a claim that every listed item is a root import. Function bodies and constant values are omitted.
rpc_nft::handle_get_nft_collection
sigil_getNftCollection — fetch a collection by its string ID.
Params: { "collection_id": "<id>" } or positional ["<id>"].
pub async fn handle_get_nft_collection(state: &RpcState, req: &RpcRequest) -> RpcResponse;Source line: 29.
rpc_nft::handle_get_nft_token
sigil_getNftToken — fetch a single token within a collection.
Params: { "collection_id": "<id>", "token_id": "<u128 string>" }.
pub async fn handle_get_nft_token(state: &RpcState, req: &RpcRequest) -> RpcResponse;Source line: 74.
rpc_nft::handle_get_owner_nfts
sigil_getOwnerNfts — list all NFTs owned by a DID.
Params: { "owner_did": "<did>", "limit": <N>, "offset": <N> } or
positional ["<did>", <limit>, <offset>].
pub async fn handle_get_owner_nfts(state: &RpcState, req: &RpcRequest) -> RpcResponse;Source line: 141.
rpc_nft::handle_get_did_identity_nft
sigil_getDidIdentityNft — fetch DID-identity index for a subject DID.
Params: { "subject_did": "<did>" } or positional ["<did>"].
pub async fn handle_get_did_identity_nft(state: &RpcState, req: &RpcRequest) -> RpcResponse;Source line: 185.
rpc_nft::handle_get_nft_events
sigil_getNftEvents — list NFT lifecycle events with optional filters.
Params: an [NftEventFilter] object or {} for all events.
The list_nft_events trait method accepts an optional collection_id
filter. Client-side filtering for owner_did and kind is applied after
retrieval, since the ExecutionState trait only exposes collection-level
filtering.
pub async fn handle_get_nft_events(state: &RpcState, req: &RpcRequest) -> RpcResponse;Source line: 222.