# zkSync Era WebSocket

**Canonical:** https://apis.io/apis/zksync/era-websocket/  
**Provider:** zkSync — https://apis.io/providers/zksync/  
**Base URL:** wss://mainnet.era.zksync.io/ws  
**Documentation:** https://docs.zksync.io/build/api-reference/api

zkSync Era WebSocket is one of 10 APIs that [zkSync](https://apis.io/providers/zksync/) publishes on the [APIs.io](https://apis.io/) network, described by an AsyncAPI event-driven specification. Tagged areas include WebSocket, Subscription, and Real-Time. The published artifact set on APIs.io includes API documentation and an AsyncAPI specification.

WebSocket variant of the zkSync Era JSON-RPC endpoint for real-time eth_* subscriptions (newHeads, logs, pendingTransactions) and zks_* subscriptions.

## Machine-readable artifacts (2)

- **Documentation** — https://docs.zksync.io/build/api-reference/api
- **AsyncAPI** — https://raw.githubusercontent.com/api-evangelist/zksync/refs/heads/main/asyncapi/zksync-asyncapi.yml

## Other zkSync APIs (9)

- [zkSync Era Mainnet JSON-RPC](https://apis.io/apis/zksync/era-mainnet-rpc/)
- [zkSync Era Sepolia JSON-RPC](https://apis.io/apis/zksync/era-sepolia-rpc/)
- [zksync-ethers SDK](https://apis.io/apis/zksync/zksync-ethers/)
- [zksync2-go SDK](https://apis.io/apis/zksync/zksync-go/)
- [hardhat-zksync](https://apis.io/apis/zksync/hardhat-zksync/)
- [foundry-zksync](https://apis.io/apis/zksync/foundry-zksync/)
- [zkSync Era Bridge](https://apis.io/apis/zksync/bridge/)
- [ZK Stack](https://apis.io/apis/zksync/zk-stack/)
- [zkSync Era Block Explorer API](https://apis.io/apis/zksync/explorer-api/)

## Tags

WebSocket, Subscription, Real-Time

---

Profiled by [API Evangelist](https://apievangelist.com) and published on [APIs.io](https://apis.io/apis/zksync/era-websocket/). The API's provider profile, Kin Score and agent-readiness rating are at https://apis.io/providers/zksync/.
