Configuration for HttpTransport.

1.0.0

interface TransportConfig {
    apiKey?: string;
    debug?: boolean;
    endpoint: string;
    headers?: Record<string, string>;
    maxRetries?: number;
    timeout?: number;
}

Hierarchy (view full)

Properties

apiKey?: string

Optional Bearer API key.

debug?: boolean

Enable debug logging to console.log.

endpoint: string

RPC endpoint URL.

headers?: Record<string, string>

Extra HTTP headers merged into every request.

maxRetries?: number

Max retry attempts on method-not-allowed (default 3).

timeout?: number

Request timeout in ms (default 30 000).