Skip to main content

WebSocket Connections

Sei supports eth_subscribe over WebSocket. You can subscribe to new blocks, event logs, and pending transactions using standard library WebSocket transports.

Endpoints

Connecting

Watching New Blocks

Watching Contract Events

Watching ERC-20 Transfers Across All Contracts

viem

Notes

  • Sei’s instant finality means every block emitted over WebSocket is already final — no need to wait for additional confirmations before acting on an event.
  • Pending transaction subscriptions (newPendingTransactions) are supported at the RPC level but Sei does not guarantee Ethereum-style pending state visibility.