Skip to main content

resolve_handle

Function resolve_handle 

Source
pub async fn resolve_handle(
    client: &Client,
    resolver_base: &str,
    handle: &str,
) -> Result<String>
Expand description

Resolve an atproto handle to its DID.

Uses com.atproto.identity.resolveHandle against resolver_base (any host that implements it; DEFAULT_RESOLVER_HOST is a safe bootstrap). A fuller implementation would also try the DNS _atproto TXT record and the https://<handle>/.well-known/atproto-did fallback; the XRPC path is the common case and the one implemented here.