Websocket Subscriptions API

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

MethodDescription
chain_subscribeNewHeadsStream new block headers
chain_subscribeFinalizedHeadsStream finalized block headers
state_subscribeStorageStream storage changes for keys
author_submitAndWatchExtrinsicSubmit an extrinsic and stream its status
chain_subscribeAllHeadsStream all block headers, including forks
chain_subscribeRuntimeVersionStream runtime version changes
grandpa_subscribeJustificationsStream GRANDPA finality justifications
beefy_subscribeJustificationsStream BEEFY justifications
transactionWatch_v1_submitAndWatchSubmit and watch a transaction using the new specification

Support