slotsUpdatesSubscribe
Subscribe to detailed slot lifecycle updates on the Solana route (Beta).
Available under Solana WebSocket API (Beta). Use the chain-family pages for handle discovery and this page for exact subscription semantics.
Stage: Beta
Access
- Surfaces:
raw_rpc_ws - Metering:
raw_rpc_ws_target_minute - Scope:
Solana slot updates subscription
Handles
| Surface | Label | Value |
|---|---|---|
raw_rpc_ws | Endpoint | wss://gw-aql.tomo.services/rpc/solana/wss |
raw_rpc_ws | Auth header | Bearer <api_key> |
raw_rpc_ws | Subscribe method | slotsUpdatesSubscribe |
raw_rpc_ws | Notification method | slotsUpdatesNotification |
Use `slotsUpdatesSubscribe` when the runtime needs richer slot lifecycle events than the compact `slotSubscribe` payload.
This beta example uses `/rpc/solana/wss` and the reviewed `slotsUpdatesSubscribe` request shape.
Examples
Connect with wscat
wscat -c "wss://gw-aql.tomo.services/rpc/solana/wss" \ -H "Authorization: Bearer <api_key>"> {> "jsonrpc": "2.0",> "id": 1,> "method": "slotsUpdatesSubscribe",> "params": []> }Request fields
Subscription request
| Field | Type | Required | Notes |
|---|---|---|---|
jsonrpc | string | Required | JSON-RPC version. Use `2.0`. |
id | string | number | Required | Caller request id. |
method | string | Required | Allowlisted subscription method. |
params | array | Required | Subscription topic or filter arguments. |
Response fields
Subscribe result
| Field | Type | Notes |
|---|---|---|
jsonrpc | string | JSON-RPC version. |
id | string | number | Echoed caller request id. |
result | string | number | Subscription id returned by the hosted route. |
Notification shape
| Field | Type | Notes |
|---|---|---|
method | string | Notification method such as `eth_subscription` or `slotNotification`. |
params.subscription | string | number | Subscription id tied to the current stream. |
params.result | object | Upstream chain payload for the current notification. |