• Creates a RpcSubscriptions instance that exposes the Solana JSON RPC WebSocket API, including its unstable methods, given a cluster URL and some optional channel config. See createDefaultRpcSubscriptionsChannelCreator for the shape of the channel config.

    Type Parameters

    • TClusterUrl extends ClusterUrl

    Parameters

    • clusterUrl: TClusterUrl
    • Optionalconfig: Omit<Readonly<{
          intervalMs?: number;
          maxSubscriptionsPerChannel?: number;
          minChannels?: number;
          sendBufferHighWatermark?: number;
          url: TClusterUrl;
      }>, "url">

    Returns RpcSubscriptionsFromTransport<AccountNotificationsApi & LogsNotificationsApi & ProgramNotificationsApi & RootNotificationsApi & SignatureNotificationsApi & SlotNotificationsApi & BlockNotificationsApi & SlotsUpdatesNotificationsApi & VoteNotificationsApi, RpcSubscriptionsTransportFromClusterUrl>