curl -H 'content-type:application/json' -d '{"id": 1, "jsonrpc": "2.0", "method": "eth_blockNumber"}' 'https://zksync.api.onfinality.io/public'https://zksync.api.onfinality.io/publicwss://zksync.api.onfinality.io/public-ws* The public endpoint is rate limited
Archive
Only pay for what you need.
ZKsync is an Ethereum Layer 2 scaling solution that uses zero-knowledge rollups (ZK-rollups) to provide high throughput, low transaction costs, and full EVM compatibility. As an elastic network, ZKsync enables developers to build scalable dApps, DeFi protocols, wallets, and analytics tools with the security of Ethereum.
Developers connect to ZKsync via JSON-RPC endpoints to read blockchain data, submit transactions, and interact with smart contracts. Common use cases include:
OnFinality provides managed API endpoints for ZKsync mainnet, supporting both HTTP and WebSocket transports. Our infrastructure is designed for production workloads, offering:
eth_blockNumber.Public ZKsync RPC endpoints are suitable for lightweight testing but often lack rate-limit transparency and reliability guarantees. OnFinality's authenticated endpoints provide clearer limits, request visibility, and a path to higher-capacity plans or dedicated nodes.
Ready to build on ZKsync? Create an OnFinality account and get your API key in minutes.
Most teams looking for ZKsync RPC need to answer a practical question: can this endpoint support the app, wallet, analytics job, or backend service they are building?
Best fit: mainnet production workflows for trading systems, analytics, and production apps.
What builders usually check first:
Supported capability notes:
Decision notes:
A quick connection check usually starts with eth_blockNumber, then moves into the exact methods your wallet, dashboard, bot, indexer, or backend service needs.
Planning the next step:
Next steps:
OnFinality takes away the heavy lifting of DevOps so you can build smarter and faster.
Get Started