createSolanaRpcSubscriptions_UNSTABLE

function createSolanaRpcSubscriptions_UNSTABLE<TClusterUrl>(
    clusterUrl,
    config?,
): RpcSubscriptionsFromTransport<
    AccountNotificationsApi &
        LogsNotificationsApi &
        ProgramNotificationsApi &
        RootNotificationsApi &
        SignatureNotificationsApi &
        SlotNotificationsApi &
        BlockNotificationsApi &
        SlotsUpdatesNotificationsApi &
        VoteNotificationsApi,
    RpcSubscriptionsTransportFromClusterUrl<TClusterUrl>
>;

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

Type Parameter
TClusterUrl extends ClusterUrl

Parameters

ParameterType
clusterUrlTClusterUrl
config?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<TClusterUrl>>

On this page