# Websocket Subscriptions API

> WebSocket API reference for Avail subscriptions. Receive real-time updates for extrinsics, block heads, runtime versions, and storage changes.

Pub-sub methods served over the Avail WebSocket interface only. Each opens a stream: send the subscribe request, receive a subscription id, then receive a notification per update. Cancel with the matching unsubscribe method.

## Subscriptions

| Method | Description |
| --- | --- |
| `chain_subscribeNewHeads` | Stream new block headers |
| `chain_subscribeFinalizedHeads` | Stream finalized block headers |
| `state_subscribeStorage` | Stream storage changes for keys |
| `author_submitAndWatchExtrinsic` | Submit an extrinsic and stream its status |
| `chain_subscribeAllHeads` | Stream all block headers, including forks |
| `chain_subscribeRuntimeVersion` | Stream runtime version changes |
| `grandpa_subscribeJustifications` | Stream GRANDPA finality justifications |
| `beefy_subscribeJustifications` | Stream BEEFY justifications |
| `transactionWatch_v1_submitAndWatch` | Submit and watch a transaction using the new specification |

## Support

* Support: [support@getblock.io](mailto:support@getblock.io)
