Helius SDK - v3.4.0
    Preparing search index...

    Type Alias TransportHook

    TransportHook: (defaultTransport: RpcTransport) => RpcTransport

    Hook for augmenting or replacing the SDK's default RPC transport.

    Receives the fully configured default transport (Helius URL with API key, SDK headers, and request-id stamping) and returns the transport the client will use. Follows @solana/kit's transport-augmentation pattern, enabling retries, failover, logging, and similar policies.

    Type Declaration

      • (defaultTransport: RpcTransport): RpcTransport
      • Parameters

        • defaultTransport: RpcTransport

        Returns RpcTransport

    const helius = createHelius({
    apiKey,
    transport: (defaultTransport) => async (request) => {
    // custom retry / failover / logging logic around defaultTransport
    return defaultTransport(request);
    },
    });