Welcome to X Layer developer documentation.
X Layer is a ZKEVM Layer 2 network built on Ethereum, powered by Polygon CDK — a ZKEVM stack for building Ethereum layer 2 scaling solutions. Developers can easily deploy their existing contracts on ZKEVM, and users can move their assets from Ethereum and conduct transactions off-chain. These transactions are bundled into groups with a zero-knowledge proof to verify their validity.
Building DApps on X Layer is just like building them on Ethereum. All you have to do is switch to the X Layer RPC and begin your development on X Layer, that offers faster transactions, lower costs, and robust security. X Layer offers a user experience similar to the Ethereum Virtual Machine (EVM) for both developers and users. This means you won’t need any new tools or wallets to create or use DApps on ZKEVM.
To start building on X Layer, you’ll first need some testnet OKB. See the Faucet guide for the steps to get testnet OKB on X Layer.
You can add X Layer mainnet by inputting the following network info:
Properties | Network details |
---|---|
Network name | X Layer mainnet |
RPC URL | https://rpc.xlayer.tech |
Chain ID | 196 |
Token symbol | OKB |
Block explorer URL | https://www.okx.com/web3/explorer/xlayer |
You can add X Layer testnet by inputting the following network info:
Properties | Network details |
---|---|
Network name | X Layer testnet |
RPC URL | https://testrpc.xlayer.tech |
Chain ID | 195 |
Token symbol | OKB |
Block explorer URL | https://www.okx.com/web3/explorer/xlayer-test |
You can connect to the X Layer Testnet through the RPC service provider ZAN Node or simply add X Layer Testnet to MetaMask through Chainlist
The next step is to bridge your assets from Ethereum → X Layer. You can use the X Layer Bridge to bridge your assets.
Developing on X Layer is seamless and identical to Ethereum Virtual Machine (EVM). Developers can use their existing code and toolings to deploy on X Layer with much better performance and lower fees. Check out how to deploy smart contracts on X Layer:
If you need help with anything related to X Layer, you can raise your questions on our Discord channel:
#dev-support
channel.
You can now contact X Layer tech support staff with your questions and concerns. We will actively monitor for issues and work to resolve them asap.