createSolanaRpcSubscriptions
Creates a RpcSubscriptions instance that exposes the Solana JSON RPC WebSocket API 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
| Parameter | Type |
|---|---|
clusterUrl | TClusterUrl |
config? | Omit<Readonly<{ intervalMs?: number; maxSubscriptionsPerChannel?: number; minChannels?: number; sendBufferHighWatermark?: number; url: TClusterUrl; }>, "url"> |
Returns
RpcSubscriptionsFromTransport<SolanaRpcSubscriptionsApi, RpcSubscriptionsTransportFromClusterUrl<TClusterUrl>>