Crypto SDK
    Preparing search index...

    Interface ClientOptions

    interface ClientOptions {
        baseUrl: string;
        apiKey?: string;
        token?: string;
        fetch?: (
            input: string | URL | Request,
            init?: RequestInit,
        ) => Promise<Response>;
        timeout?: number;
        retry?: RetryOptions;
        traceparent?: string | boolean;
    }
    Index
    baseUrl: string

    Base URL of the crypto server (e.g., "http://localhost:3000").

    apiKey?: string

    API key for x-api-key header authentication.

    token?: string

    JWT Bearer token for Authorization header.

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

    Custom fetch implementation (defaults to global fetch).

    timeout?: number

    Request timeout in milliseconds.

    retry?: RetryOptions

    Automatic retry options for transient errors (429, 503, 504).

    traceparent?: string | boolean

    Optional W3C Trace Context traceparent header or generation flag. If a string is provided, it is sent as the traceparent header. If true, a fresh compliant W3C traceparent is generated per request.