Skip to main content

DID_LOOKUP_LIMIT

Constant DID_LOOKUP_LIMIT 

Source
pub const DID_LOOKUP_LIMIT: u32 = 60;
Expand description

How many DIDs hosted elsewhere one caller address may ask com.atproto.identity.resolveDid to fetch per DID_LOOKUP_WINDOW; see AuthState::did_lookup_limiter.

Reasonable range: 10 to 600. Each one costs an HTTPS fetch from a host the caller named or from the PLC directory, and none is authenticated. A client resolves a few DIDs as it opens a view. A DID hosted here costs no lookup and spends nothing.