Documentation
    Preparing search index...

    Interface SealClientOptions

    Configuration options for initializing a SealClient

    interface SealClientOptions {
        fetch?: (
            input: RequestInfo | URL,
            init?: RequestInit,
        ) => Promise<Response>;
        serverConfigs: KeyServerConfig[];
        suiClient: SealCompatibleClient;
        timeout?: number;
        verifyKeyServers?: boolean;
    }
    Index

    Properties

    fetch?: (input: RequestInfo | URL, init?: RequestInit) => Promise<Response>

    Custom fetch implementation used for all key server requests, for example to send cookies (credentials: 'include') or attach your own headers. Defaults to the global fetch.

    Type Declaration

      • (input: RequestInfo | URL, init?: RequestInit): Promise<Response>
      • Parameters

        • input: RequestInfo | URL
        • Optionalinit: RequestInit

        Returns Promise<Response>

    serverConfigs: KeyServerConfig[]

    Array of key server configs consisting of objectId, weight, optional API key name and API key

    timeout?: number

    Timeout in milliseconds for network requests.

    verifyKeyServers?: boolean

    Whether to verify the key servers' authenticity. Note: /service verification is skipped for committee key servers (serverType === 'Committee') since their requests go through an aggregator.