Network information#
Welcome to X Layer developer documentation.
Connecting to X Layer (Mainnet)#
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, https://xlayerrpc.okx.com |
Chain ID | 196 |
Token symbol | OKB |
Block explorer URL | https://www.okx.com/web3/explorer/xlayer |
Connecting to X Layer (Testnet)#
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/terigon, https://xlayertestrpc.okx.com/terigon |
Chain ID | 1952 |
Token symbol | OKB |
Block explorer URL | https://www.okx.com/web3/explorer/xlayer-test |
Deploying smart contracts#
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:
Deploy using Hardhat
Guide to deploy contract using Hardhat
Deploy using Truffle
Guide to deploy contract using Truffle
Deploy using Foundry
Guide to deploy contract using Foundry