Ir diretamente para o conteúdo principal

zkSync RPC

With Quicknode, you get access to our global zkSync network which always routes your API requests to the nearest available location, ensuring low latency and the fastest speeds.

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.

Com esta API, pode:

  • 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
  • Subscrever eventos em tempo real através de ligações WebSocket

Pode ligar-se à API das seguintes formas:

  • 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

Redes compatíveis

Quicknode provides access to the following zkSync networks:

Rede principal
Tipo:Produção
ID da cadeia:
324
HTTP:
WSS:
Arquivo:Sim
Poda:Nenhuma
Sepolia
Tipo:Rede de teste
ID da cadeia:
300
HTTP:
WSS:
Arquivo:Sim
Poda:Nenhuma
Partilhar este documento