sigil-node · rpc_username
Source declarations, signatures and documentation for rpc_username.
Source: sigil/node/sigil-node/src/rpc_username.rs. SHA-256: 140f03080ea6f535a4f751136436743bd96e3fd16d91d3eb42d3f5c5f8bf2322.
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_username::handle_resolve_username
sigil_resolveUsername — return the canonical record for a name.
Params: { "name": "<canonical>" } or positional ["<canonical>"].
Returns null if the name is not registered.
pub async fn handle_resolve_username(state: &RpcState, req: &RpcRequest) -> RpcResponse;Source line: 22.
rpc_username::handle_lookup_username
sigil_lookupUsername — reverse-lookup a DID's primary @username.
Params: { "did": "did:oas:..." } or positional ["did:oas:..."].
Returns the canonical username string, or null if no primary is set.
pub async fn handle_lookup_username(state: &RpcState, req: &RpcRequest) -> RpcResponse;Source line: 57.
rpc_username::handle_list_usernames
sigil_listUsernames — return all usernames owned by a DID.
Params: { "owner_did": "did:oas:..." } or positional ["did:oas:..."].
pub async fn handle_list_usernames(state: &RpcState, req: &RpcRequest) -> RpcResponse;Source line: 83.
rpc_username::handle_search_username
sigil_searchUsername — prefix search the username space.
Params: { "prefix": "ali", "limit": 50 } or positional ["ali", 50].
Limit defaults to 50 and caps at 200. Returns up to limit records whose
canonical name starts with the (canonicalized) prefix.
pub async fn handle_search_username(state: &RpcState, req: &RpcRequest) -> RpcResponse;Source line: 110.
rpc_username::handle_get_username_auction
sigil_getUsernameAuction — fetch a single premium-name auction.
Params: { "name": "<canonical>" } or positional ["<canonical>"].
Returns null if no auction exists for that name.
pub async fn handle_get_username_auction(state: &RpcState, req: &RpcRequest) -> RpcResponse;Source line: 163.
rpc_username::handle_list_open_auctions
sigil_listOpenUsernameAuctions — return all currently-open auctions.
pub async fn handle_list_open_auctions(state: &RpcState, req: &RpcRequest) -> RpcResponse;Source line: 194.