comAtprotoIdentityResolveHandle function

Future<XRPCResponse<IdentityResolveHandleOutput>> comAtprotoIdentityResolveHandle({
  1. required String handle,
  2. required ServiceContext $ctx,
  3. Map<String, String>? $headers,
  4. Map<String, String>? $unknown,
})

Resolves an atproto handle (hostname) to a DID. Does not necessarily bi-directionally verify against the the DID document.

Implementation

Future<XRPCResponse<IdentityResolveHandleOutput>>
comAtprotoIdentityResolveHandle({
  required String handle,
  required ServiceContext $ctx,
  Map<String, String>? $headers,
  Map<String, String>? $unknown,
}) async => await $ctx.get(
  ns.comAtprotoIdentityResolveHandle,
  headers: $headers,
  parameters: {...?$unknown, 'handle': handle},
  to: const IdentityResolveHandleOutputConverter().fromJson,
);