toip.tools

function · Browser and Node

httpStatusResolver

Fetches signed lists over HTTP: GET ${base}/${encodeURIComponent(did)} for list "did#…", as the agents hub serves them (GET /api/status/:did). Anything but a JSON list with the asked-for id is null.

@toip-tools/mandatesView source
TypeScriptImport
import { httpStatusResolver } from "@toip-tools/mandates";

Declaration

TypeScriptSignature
httpStatusResolver(base: string, o?: {
    fetch?: typeof fetch;
    cacheSeconds?: number;
    path?: (listId: string) => string;
}): StatusResolver;

Parameters

baserequired
string
ooptional
{ fetch?: typeof fetch; cacheSeconds?: number; path?: (listId: string) => string; }

Default: {}

Returns