createRpcSubscriptionsApi
Creates a JavaScript proxy that converts any function call called on it to a
RpcSubscriptionsPlan by creating an execute function that:
- calls the supplied RpcSubscriptionsApiConfig.planExecutor with a JSON RPC v2 payload
object with the requested
methodNameandparamsproperties, optionally transformed by RpcSubscriptionsApiConfig.requestTransformer.
Type Parameters
| Type Parameter |
|---|
TRpcSubscriptionsApiMethods extends RpcSubscriptionsApiMethods |
Parameters
| Parameter | Type |
|---|---|
config | RpcSubscriptionsApiConfig<TRpcSubscriptionsApiMethods> |
Returns
RpcSubscriptionsApi<TRpcSubscriptionsApiMethods>