zkSync RPC
What is zkSync?
zkSync Era is a zero-knowledge rollup (zkRollup) Layer 2 solution for Ethereum developed by Matter Labs. It uses SNARK-based cryptographic proofs to batch transactions off-chain and verify them on Ethereum mainnet, ensuring all transactions are mathematically valid while inheriting Ethereum's security.
Unlike optimistic rollups, zkSync does not require challenge periods for withdrawals because validity proofs provide immediate cryptographic certainty. This enables faster finality compared to optimistic rollups and significantly reduces transaction costs relative to Ethereum mainnet.
zkSync Era uses a zkEVM architecture, allowing Solidity smart contracts to be compiled into zkSync-compatible bytecode. The system was designed to eventually support zkPorter, a hybrid data-availability solution that could lower costs further by storing some data off-chain. However, zkPorter is not currently available on mainnet.
Interacting with zkSync
zkSync extends the standard Ethereum JSON-RPC interface with Layer 2–specific functionality, while maintaining broad compatibility with Ethereum tooling. Developers can use zkSync Era with common tools like MetaMask, Hardhat, Foundry, and Web3 libraries with minimal changes.
이 API를 사용하면 다음과 같은 작업을 수행할 수 있습니다:
- Execute standard Ethereum JSON-RPC methods (eth_call, eth_sendTransaction, eth_getBalance)
- Access zkSync-specific methods for Layer 2 operations (e.g., zks_estimateFee, zks_getMainContract)
- Query bridge operations and batch information
- WebSocket 연결을 통해 실시간 이벤트를 구독하세요
다음과 같은 방법으로 API에 연결할 수 있습니다:
- Running a local zkSync Era node
- Using a hosted provider such as a Quicknode zkSync endpoint, which provides access to zkSync Era Mainnet and Sepolia testnet with high reliability, archive data, and enhanced performance
지원되는 네트워크
Quicknode provides access to the following zkSync networks:
Complete reference for developers building on zkSync with Quicknode:
빠른 시작
Get started with zkSync quickly. Follow our step-by-step quickstart to set up your endpoint and make your first API request.
공급자 엔드포인트
Learn how to configure and manage your zkSync endpoints for optimal performance and reliability.
API 개요
강력한 애플리케이션을 구축하는 데 필요한 지원되는 API, 네트워크, Quicknode 제품 및 향상된 API 기능을 살펴보세요.
마켓플레이스
Quicknode 마켓플레이스에서 강력한 애드온과 도구를 찾아 통합하여 웹3 애플리케이션을 강화해 보세요.
엔드포인트 보안
인증, 화이트리스트 적용 및 모범 보안 관행을 통해 엔드포인트를 보호하십시오.
오류 코드
Understand common error codes and troubleshooting steps for zkSync API requests.