AsyncAPI 2.6 specification for Chainstack's JSON-RPC WebSocket (WSS) subscription APIs. Chainstack-managed nodes expose a persistent WebSocket endpoint per node that accepts JSON-RPC 2.0 messages. Clients open a single `wss://` connection, send an `eth_subscribe` (EVM chains), `*Subscribe` (Solana), or other chain-specific subscription request, and then receive a stream of push notifications until they call the corresponding unsubscribe method or close the socket. Every channel, message and parameter in this document is sourced from Chainstack's public Developer Portal (https://docs.chainstack.com). Only subscriptions that Chainstack explicitly documents are included. Connection limits documented by Chainstack for managed nodes: - 3,600 second (1 hour) idle timeout per WebSocket connection. - Maximum 500 concurrent WebSocket connections per node. - Each pushed notification is billable as one request unit (except on Unlimited Nodes). Reference: https://docs.chainstack.com/docs/handle-real-time-data-using-websockets-with-javascript-and-python
View SpecView on GitHubBlockchainMulti-ChainRPCNode InfrastructureWeb3CryptoEthereumSolanaBitcoinDeFiMEVTrader NodeArchive DataMCPAI AgentsAsyncAPIWebhooksEvents
Channels
ethereum/eth_subscribe/newHeads
publishethereumSubscribeNewHeads
Subscribe to newHeads on Ethereum
Subscribe to new Ethereum block headers via WebSocket. Server pushes one notification per new canonical block.
ethereum/eth_subscribe/logs
publishethereumSubscribeLogs
Subscribe to logs on Ethereum
Subscribe to Ethereum event logs matching an optional address/topics filter.
ethereum/eth_subscribe/newPendingTransactions
publishethereumSubscribeNewPendingTransactions
Subscribe to newPendingTransactions on Ethereum
Subscribe to the hash (or full body) of every new pending transaction entering the Ethereum mempool.
ethereum/eth_subscribe/syncing
publishethereumSubscribeSyncing
Subscribe to syncing on Ethereum
Subscribe to Ethereum node syncing status. Pushes a sync object while syncing; pushes `false` once synced.
ethereum/eth_unsubscribe
publishethereumUnsubscribe
Cancel an Ethereum subscription
Cancel any active eth_subscribe subscription on an Ethereum node.
polygon/eth_subscribe/newHeads
publishpolygonSubscribeNewHeads
Subscribe to newHeads on Polygon
Subscribe to new Polygon PoS block headers via WebSocket.
polygon/eth_subscribe/logs
publishpolygonSubscribeLogs
Subscribe to logs on Polygon
Subscribe to Polygon event logs matching an optional address/topics filter.
polygon/eth_subscribe/newPendingTransactions
publishpolygonSubscribeNewPendingTransactions
Subscribe to newPendingTransactions on Polygon
Subscribe to new pending transactions in the Polygon mempool.
polygon/eth_subscribe/syncing
publishpolygonSubscribeSyncing
Subscribe to syncing on Polygon
Subscribe to Polygon node syncing status.
polygon/eth_unsubscribe
publishpolygonUnsubscribe
Cancel a Polygon subscription
Cancel any active eth_subscribe subscription on a Polygon node.
arbitrum/eth_subscribe/newHeads
publisharbitrumSubscribeNewHeads
Subscribe to newHeads on Arbitrum
Subscribe to new Arbitrum block headers via WebSocket.
arbitrum/eth_subscribe/logs
publisharbitrumSubscribeLogs
Subscribe to logs on Arbitrum
Subscribe to Arbitrum event logs matching an optional address/topics filter.
arbitrum/eth_subscribe/syncing
publisharbitrumSubscribeSyncing
Subscribe to syncing on Arbitrum
Subscribe to Arbitrum node syncing status.
arbitrum/eth_unsubscribe
publisharbitrumUnsubscribe
Cancel an Arbitrum subscription
Cancel any active eth_subscribe subscription on an Arbitrum node.
optimism/eth_subscribe/newHeads
publishoptimismSubscribeNewHeads
Subscribe to newHeads on Optimism
Subscribe to new Optimism block headers via WebSocket.
optimism/eth_subscribe/logs
publishoptimismSubscribeLogs
Subscribe to logs on Optimism
Subscribe to Optimism event logs matching an optional address/topics filter.
optimism/eth_unsubscribe
publishoptimismUnsubscribe
Cancel an Optimism subscription
Cancel any active eth_subscribe subscription on an Optimism node.
base/eth_subscribe/newFlashblocks
publishbaseSubscribeNewFlashblocks
Subscribe to newFlashblocks on Base
Subscribe to Chainstack Base Flashblocks preconfirmations. Streams a block snapshot approximately every 200 ms while a block is forming. The snapshot's `hash` and `stateRoot` are zero until the block is finalized.
base/eth_subscribe/newFlashblockTransactions
publishbaseSubscribeNewFlashblockTransactions
Subscribe to newFlashblockTransactions on Base
Subscribe to transactions inside Base Flashblocks preconfirmations. The optional boolean parameter `true` requests full transaction objects (and associated logs) in each notification; otherwise minimal data is returned.
base/eth_subscribe/pendingLogs
publishbaseSubscribePendingLogs
Subscribe to pendingLogs on Base
Subscribe to event logs emitted by pre-confirmed Flashblock transactions on Base. Delivered roughly every 200 ms over WebSocket and filtered by address/topics.
base/eth_unsubscribe
publishbaseUnsubscribe
Cancel a Base subscription
Cancel any active eth_subscribe subscription on a Base node.
avalanche/eth_subscribe/newHeads
publishavalancheSubscribeNewHeads
Subscribe to newHeads on Avalanche
Subscribe to new Avalanche C-Chain block headers via WebSocket.
avalanche/eth_subscribe/logs
publishavalancheSubscribeLogs
Subscribe to logs on Avalanche
Subscribe to Avalanche event logs matching an optional address/topics filter.
avalanche/eth_subscribe/newPendingTransactions
publishavalancheSubscribeNewPendingTransactions
Subscribe to newPendingTransactions on Avalanche
Subscribe to new pending transactions in the Avalanche mempool.
avalanche/eth_subscribe/syncing
publishavalancheSubscribeSyncing
Subscribe to syncing on Avalanche
Subscribe to Avalanche node syncing status.
avalanche/eth_unsubscribe
publishavalancheUnsubscribe
Cancel an Avalanche subscription
Cancel any active eth_subscribe subscription on an Avalanche node.
gnosis/eth_subscribe/newHeads
publishgnosisSubscribeNewHeads
Subscribe to newHeads on Gnosis
Subscribe to new Gnosis Chain block headers via WebSocket.
gnosis/eth_subscribe/logs
publishgnosisSubscribeLogs
Subscribe to logs on Gnosis
Subscribe to Gnosis Chain event logs matching an optional address/topics filter.
gnosis/eth_subscribe/newPendingTransactions
publishgnosisSubscribeNewPendingTransactions
Subscribe to newPendingTransactions on Gnosis
Subscribe to new pending transactions in the Gnosis Chain mempool.
gnosis/eth_subscribe/syncing
publishgnosisSubscribeSyncing
Subscribe to syncing on Gnosis
Subscribe to Gnosis Chain node syncing status.
gnosis/eth_unsubscribe
publishgnosisUnsubscribe
Cancel a Gnosis subscription
Cancel any active eth_subscribe subscription on a Gnosis Chain node.
ronin/eth_subscribe/newHeads
publishroninSubscribeNewHeads
Subscribe to newHeads on Ronin
Subscribe to new Ronin block headers via WebSocket.
ronin/eth_subscribe/logs
publishroninSubscribeLogs
Subscribe to logs on Ronin
Subscribe to Ronin event logs matching an optional address/topics filter.
ronin/eth_subscribe/newPendingTransactions
publishroninSubscribeNewPendingTransactions
Subscribe to newPendingTransactions on Ronin
Subscribe to new pending transactions in the Ronin mempool.
ronin/eth_unsubscribe
publishroninUnsubscribe
Cancel a Ronin subscription
Cancel any active eth_subscribe subscription on a Ronin node.
hyperliquid/eth_subscribe/newHeads
publishhyperliquidSubscribeNewHeads
Subscribe to newHeads on Hyperliquid HyperEVM
Subscribe to new HyperEVM block headers via WebSocket.
hyperliquid/eth_subscribe/logs
publishhyperliquidSubscribeLogs
Subscribe to logs on Hyperliquid HyperEVM
Subscribe to HyperEVM event logs matching an optional address/topics filter.
hyperliquid/eth_subscribe/syncing
publishhyperliquidSubscribeSyncing
Subscribe to syncing on Hyperliquid HyperEVM
Subscribe to HyperEVM node syncing status.
hyperliquid/eth_unsubscribe
publishhyperliquidUnsubscribe
Cancel a Hyperliquid HyperEVM subscription
Cancel any active eth_subscribe subscription on a HyperEVM node.
monad/eth_subscribe/monadNewHeads
publishmonadSubscribeMonadNewHeads
Subscribe to monadNewHeads on Monad
Subscribe to Monad block headers via the consensus lifecycle. Each notification includes a `blockId` and `commitState` (Proposed / Voted / Finalized / Verified). The same block number may appear multiple times as its `commitState` advances. Typically delivers roughly one second ahead of the standard `newHeads` event.
solana/accountSubscribe
publishsolanaAccountSubscribe
Subscribe to a Solana account
Subscribe to changes on a single Solana account.
solana/accountUnsubscribe
publishsolanaAccountUnsubscribe
Cancel a Solana accountSubscribe
Cancel an existing accountSubscribe subscription.
solana/programSubscribe
publishsolanaProgramSubscribe
Subscribe to a Solana program
Subscribe to changes on all accounts owned by a Solana program.
solana/programUnsubscribe
publishsolanaProgramUnsubscribe
Cancel a Solana programSubscribe
Cancel an existing programSubscribe subscription.
solana/logsSubscribe
publishsolanaLogsSubscribe
Subscribe to Solana logs
Subscribe to transaction logs on Solana, optionally filtered by mentioned accounts.
solana/logsUnsubscribe
publishsolanaLogsUnsubscribe
Cancel a Solana logsSubscribe
Cancel an existing logsSubscribe subscription.
solana/signatureSubscribe
publishsolanaSignatureSubscribe
Subscribe to a Solana transaction signature
Subscribe to status changes for a specific transaction signature.
solana/signatureUnsubscribe
publishsolanaSignatureUnsubscribe
Cancel a Solana signatureSubscribe
Cancel an existing signatureSubscribe subscription.
solana/slotSubscribe
publishsolanaSlotSubscribe
Subscribe to Solana slots
Subscribe to notifications about new Solana slots being processed by the validator.
solana/slotUnsubscribe
publishsolanaSlotUnsubscribe
Cancel a Solana slotSubscribe
Cancel an existing slotSubscribe subscription.
solana/slotsUpdatesSubscribe
publishsolanaSlotsUpdatesSubscribe
Subscribe to Solana slots updates
Subscribe to detailed slot update notifications (first shred received, completed, created bank, frozen, optimistically confirmed, root).
solana/slotsUpdatesUnsubscribe
publishsolanaSlotsUpdatesUnsubscribe
Cancel a Solana slotsUpdatesSubscribe
Cancel an existing slotsUpdatesSubscribe subscription.
solana/blockSubscribe
publishsolanaBlockSubscribe
Subscribe to Solana blocks
Subscribe to confirmed Solana blocks. Available on Chainstack Solana Mainnet and Devnet (per the Chainstack August 15, 2024 release).
solana/blockUnsubscribe
publishsolanaBlockUnsubscribe
Cancel a Solana blockSubscribe
Cancel an existing blockSubscribe subscription.
solana/rootSubscribe
publishsolanaRootSubscribe
Subscribe to Solana root slots
Subscribe to root slot notifications (rooted slot number + estimated production timestamp).
solana/rootUnsubscribe
publishsolanaRootUnsubscribe
Cancel a Solana rootSubscribe
Cancel an existing rootSubscribe subscription.
Messages
✉
EthSubscribeNewHeadsRequest
eth_subscribe ("newHeads") request
JSON-RPC 2.0 request to subscribe to new block headers.
✉
EthSubscribeLogsRequest
eth_subscribe ("logs") request
JSON-RPC 2.0 request to subscribe to event logs matching an address/topics filter.
✉
EthSubscribeNewPendingTransactionsRequest
eth_subscribe ("newPendingTransactions") request
JSON-RPC 2.0 request to subscribe to new pending transactions.
✉
EthSubscribeSyncingRequest
eth_subscribe ("syncing") request
JSON-RPC 2.0 request to subscribe to node sync status changes.
✉
EthUnsubscribeRequest
eth_unsubscribe request
JSON-RPC 2.0 request to cancel an existing subscription.
✉
BaseSubscribeNewFlashblocksRequest
eth_subscribe ("newFlashblocks") request (Base)
Subscribe to Chainstack Base Flashblocks preconfirmation snapshots (~200 ms cadence).
Push notification carrying a transaction included in a Base Flashblocks preconfirmation.
✉
MonadSubscriptionMonadNewHeadsNotification
eth_subscription notification (monadNewHeads)
Push notification carrying a Monad block header tagged with its commitState.
✉
SolanaAccountSubscribeRequest
accountSubscribe request (Solana)
✉
SolanaProgramSubscribeRequest
programSubscribe request (Solana)
✉
SolanaLogsSubscribeRequest
logsSubscribe request (Solana)
✉
SolanaSignatureSubscribeRequest
signatureSubscribe request (Solana)
✉
SolanaSlotSubscribeRequest
slotSubscribe request (Solana)
✉
SolanaSlotsUpdatesSubscribeRequest
slotsUpdatesSubscribe request (Solana)
✉
SolanaBlockSubscribeRequest
blockSubscribe request (Solana)
✉
SolanaRootSubscribeRequest
rootSubscribe request (Solana)
✉
SolanaUnsubscribeRequest
Solana unsubscribe request
Cancel an existing Solana subscription by ID. The method name varies (accountUnsubscribe, programUnsubscribe, logsUnsubscribe, signatureUnsubscribe, slotUnsubscribe, slotsUpdatesUnsubscribe, blockUnsubscribe, rootUnsubscribe).
Chainstack Dedicated / Trader Node WebSocket endpoint. The {node_id} is the provisioned per-node identifier (for example `nd-422-757-666`) and {auth_key} is the per-node access key. Example: wss://nd-422-757-666.p2pify.com/AUTH_KEY.