Method reference

eth_subscribe

Opens a subscription over WebSocket: newHeads pushes each new block header, logs pushes matching events, and newPendingTransactions pushes mempool transaction hashes where the node exposes them. It replaces polling, and it only works over WebSocket, not HTTP.

newHeads worked on 50 of 54 chains through our WebSocket endpoint; newPendingTransactions on 0.

eth_subscribe on 50 chains, measured

Measured 2026-11-29 by calling eth_subscribe through the SwiftNodes endpoint for each chain, re-measured weekly. Each chain links to its own page with the full response and code.

ChainnewHeadslogsnewPendingTransactions
Abstractyesnono
ApeChainyesnono
Arbitrumyesnono
Arbitrum Novayesnono
Avalancheyesnono
Baseyesnono
Berachainyesnono
BNB Smart Chainyesnono
Boba Networkyesnono
Celoyesnono
Chilizyesnono
Coreyesnono
Cronosyesnono
Ethereumyesnono
Ethereum Classicyesnono
Fantomyesnono
Flareyesnono
Fraxtalyesnono
Gnosisyesnono
Hemiyesnono
Hyperliquidyesnono
Immutable zkEVMyesnono
Inkyesnono
Kaiayesnono
Katanayesnono
Lineayesnono
Liskyesnono
Manta Pacificyesnono
Mantleyesnono
MegaETHyesnono
Modeyesnono
Monadyesnono
Morphyesnono
opBNByesnono
Optimismyesnono
Plasmayesnono
Polygonyesnono
PulseChainyesnono
Scrollyesnono
Seiyesnono
Soneiumyesnono
Sonicyesnono
Storyyesnono
Taikoyesnono
Telos EVMyesnono
Tempoyesnono
Unichainyesnono
World Chainyesnono
X Layeryesnono
zkSync Erayesnono

Not served through our endpoint when measured: Shibarium, Zora, BOB, Ronin.

Replace YOUR_API_KEY in the examples on each chain page with your SwiftNodes key (free tier available).