logsSubscribe
Subscribe to transaction log events in the current Solana beta tree.
Topic
logsSubscribeRoute familySolana
StageBeta
Available under Solana WebSocket API (Beta). Use the chain-family pages for handle discovery and this page for exact subscription semantics.
Compatibility reference only. Live endpoint examples are not published on this page.
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. |
Related pages
- Solana overview: Return to the Solana overview page.
- Solana WebSocket API (Beta): Open the compatibility method tree.
- Use RPC WebSocket: Return to the task-oriented websocket guide.
- Canonical method path: Keep a direct link to this exact subscription page.