X Layer RPC
What is X Layer?
X Layer is a zero-knowledge rollup (zkRollup) Layer 2 solution for Ethereum, built on zkEVM technology. It uses a hybrid proof approach — generating STARK proofs for execution and then recursively wrapping them into a SNARK for efficient on-chain verification. This ensures transactions are mathematically valid while inheriting Ethereum’s security.
Unlike optimistic rollups, X Layer does not require challenge periods for withdrawals because validity proofs provide cryptographic certainty once submitted. Finality depends on proof submission intervals — typically minutes rather than days — but is still faster than optimistic rollups. Transaction costs are significantly reduced compared to Ethereum mainnet, with savings coming from transaction batching and calldata compression.
X Layer achieves bytecode-level compatibility with the Ethereum Virtual Machine (EVM). This zkEVM architecture supports nearly all EVM opcodes and precompiles, with only minor differences in edge cases such as gas costs. This ensures that most existing Ethereum smart contracts and applications can be deployed without modification, preserving broad compatibility with Ethereum's execution environment, tooling, and developer ecosystem while providing zero-knowledge security guarantees.
Interacting with X Layer
X Layer fully supports the standard Ethereum JSON-RPC interface while also providing additional Layer 2–specific functionality. This ensures complete compatibility with existing Ethereum tooling, so developers can use X Layer seamlessly with tools such as MetaMask, Hardhat, Foundry, and Web3 libraries without code changes.
With the X Layer API, you can:
- Execute all standard Ethereum JSON-RPC methods (
eth_call
,eth_sendTransaction
,eth_getBalance
) - Access X Layer–specific methods for rollup operations (e.g., querying proof status and bridge interactions)
- Query bridge activity, batch submissions, and proof verification status
- Subscribe to real-time L2 events via WebSocket connections
- Use available tracing and inspection utilities for deeper blockchain debugging
You can connect to the API by:
- Running a local X Layer node
- Using a hosted provider such as a QuickNode X Layer endpoint, which provides access to X Layer Mainnet with high reliability, archive data, and enhanced performance
Supported Networks
QuickNode provides access to the following X Layer networks:
Complete reference for developers building on X Layer with QuickNode:
QuickStart
Get started with X Layer quickly. Follow our step-by-step quickstart to set up your endpoint and make your first API request.
Provider Endpoints
Learn how to configure and manage your X Layer endpoints for optimal performance and reliability.
API Overview
Explore supported APIs, networks, QuickNode products, and enhanced API features for building powerful applications.
Marketplace
Discover and integrate powerful add-ons and tools from the QuickNode Marketplace to enhance your web3 applications.
Endpoint Security
Secure your endpoints with authentication, whitelisting, and best security practices.
Error Codes
Understand common error codes and troubleshooting steps for X Layer API requests.