Configuration for SynapseClient.

Extends TransportConfig with optional WebSocket and gRPC endpoints.

1.0.0

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

Hierarchy (view full)

Properties

apiKey?: string

Optional Bearer API key.

debug?: boolean

Enable debug logging to console.log.

endpoint: string

RPC endpoint URL.

grpcEndpoint?: string

gRPC endpoint for Yellowstone/Geyser streaming (defaults to the HTTP endpoint).

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).

wsEndpoint?: string

WebSocket endpoint for subscriptions (defaults to the HTTP endpoint with ws://).