Configuration for initializing a GrpcTransport instance.

const config: GrpcTransportConfig = {
endpoint: 'localhost:50051',
protoPath: './proto/geyser.proto',
packageName: 'geyser',
tls: false,
};

1.0.0

interface GrpcTransportConfig {
    deadline?: number;
    endpoint: string;
    metadata?: Record<string, string>;
    packageName?: string;
    protoPath?: string;
    tls?: boolean;
}

Properties

deadline?: number

Deadline in ms for unary calls

endpoint: string
metadata?: Record<string, string>

Custom metadata sent with every call

packageName?: string

Package name inside the proto definition

protoPath?: string

Path to .proto file for custom services

tls?: boolean

If true, use TLS credentials (default: insecure)