zkSync JSON RPC API
Introduction​
zkSync is a Layer 2 scaling solution for Ethereum that uses zero-knowledge rollups to provide low-cost, high-throughput transactions while maintaining the security of the Ethereum network. It enables developers to build scalable decentralized applications (dApps) with faster transaction finality and lower fees. zkSync’s architecture is ideal for decentralized finance (DeFi), NFTs, and other applications requiring high-speed processing.
Supported Networks​
The zkSync RPC API is available for the following networks:
- zkSync Mainnet
- zkSync Sepolia Testnet
Network Details​
Network | Chain ID | EVM Chain | RPC URLs |
---|---|---|---|
zkSync Mainnet | 0x144 (324) | EvmChain.ZKSYNC | https://site1.moralis-nodes.com/zksync/ |
https://site2.moralis-nodes.com/zksync/ | |||
zkSync Sepolia | 0x12c (300) | EvmChain.ZKSYNC_SEPOLIA | https://site1.moralis-nodes.com/zksync-sepolia/ |
https://site2.moralis-nodes.com/zksync-sepolia/ |
Supported RPC Methods​
- eth_blockNumber
- eth_call
- eth_chainId
- eth_createAccessList
- eth_estimateGas
- eth_feeHistory
- eth_gasPrice
- eth_getBalance
- eth_getBlockByHash
- eth_getBlockByNumber
- eth_getBlockTransactionCountByHash
- eth_getBlockTransactionCountByNumber
- eth_getBlockReceipts
- eth_getCode
- eth_getLogs
- eth_getProof
- eth_getStorageAt
- eth_getTransactionByHash
- eth_getTransactionByBlockHashAndIndex
- eth_getTransactionByBlockNumberAndIndex
- eth_getTransactionCount
- eth_getTransactionReceipt
- eth_getUncleByBlockHashAndIndex
- eth_getUncleByBlockNumberAndIndex
- eth_getUncleCountByBlockHash
- eth_getUncleCountByBlockNumber
- eth_maxPriorityFeePerGas
- eth_sendRawTransaction