Kit
Functions

executeRpcPubSubSubscriptionPlan

executeRpcPubSubSubscriptionPlan<TNotification>(config): Promise<DataPublisher<RpcSubscriptionNotificationEvents<TNotification>>>

Given a channel, this function executes the particular subscription plan required by the Solana JSON RPC Subscriptions API.

Type Parameters

Type Parameter
TNotification

Parameters

ParameterTypeDescription
configConfig<TNotification>1. Calls the subscribeRequest on the remote RPC 2. Waits for a response containing the subscription id 3. Returns a DataPublisher that publishes notifications related to that subscriptions id, filtering out all others 4. Calls the unsubscribeMethodName on the remote RPC when the abort signal is fired.

Returns

Promise<DataPublisher<RpcSubscriptionNotificationEvents<TNotification>>>

On this page