User guide
Bridge (testnet)

Bridge (testnet)#

Bridging assets from Sepolia to X Layer testnet#

You can follow this step-by-step guide to learn how to bridge assets from Ethereum Sepolia testnet to X Layer testnet.

  1. Enter the X Layer bridge testnet page, then select Sepolia (left) and X Layer testnet (right) as the two bridging directions, as shown below:

X Layer bridge

  1. Click the Connect wallet button to connect your wallet:

Connect wallet X Layer bridge

  1. Select the token you need to bridge (ETH is used as an example here), enter the amount, then click the Bridge button:
Note
Please note that you need to reserve some ETH for Sepolia network fee.

X Layer bridge input amount

  1. Check the bridge transaction details, then click the Confirm button:

X Layer bridge confirm transaction

  1. Double check the transaction again in your wallet. Please wait a few moments for your transaction to be processed:

Transaction confirm popup

  1. Your pending transactions will now appear towards the bottom of your screen. You can also click the View all transactions button to view all of the bridge transactions you have made thus far:

X Layer bridge pending transaction

Bridging assets from X Layer testnet to Sepolia#

You can follow this step-by-step guide to learn how to bridge assets from X Layer testnet to Ethereum Sepolia testnet.

  1. Enter the X Layer bridge testnet page, then select X Layer testnet* (left) and Sepolia (right) as the two bridging directions, as shown below:

X Layer bridge to sepolia

  1. Click the Connect wallet button, and switch to X Layer testnet (if you have not added X Layer testnet yet, please add it first):

Connect wallet X Layer bridge to Sepolia

  1. Select the token you need to bridge (OKB is used as an example here), enter the amount, then click the Bridge button:
Note
Please note that you need to reserve some OKB for X Layer testnet network fee.

X Layer bridge input amount to Sepolia

  1. Check the bridge transaction details, then click the Confirm button:

X Layer bridge confirm transaction to Sepolia

  1. Double check the transaction again in your wallet. Please wait a few moments for your transaction to be processed:

Transaction confirm popup to Sepolia

  1. Your pending transactions will now appear towards the bottom of your screen. You can also click the View all transactions button to view all of the bridge transactions you have made thus far:

X Layer bridge pending transaction to Sepolia

  1. Click the Claim button (bottom right), and switch your wallet to the Sepolia network. Confirm the transaction in your wallet, then wait for your funds to arrive:

X Layer bridge claim to Sepolia

FAQ#

How to clear your account activity/reset account in MetaMask?#

You should only clear your account activity when strictly necessary, most often to resolve stuck and pending transactions.

This function is intended primarily for developers, who may find it useful to clear an account’s activity on a test network while continuing to use the same account.

Note that clearing account activity only affects the current network. For example: if you’re on X Layer testnet, the only activity that will be cleared are your transactions on X Layer testnet. Transactions on other networks, such as Ethereum, will be unaffected.

Note
Clearing your activity is irreversible, and not a common requirement for most users.You will not lose value in your accounts.

To reset the account:

  1. Click the three vertical dots in the top-right corner, and then go to Settings > Advanced.

Setting

  1. Scroll down to the Clear activity and nonce data section and click the Clear activity tab data button.

Clear activity

How to reset the account in OKX wallet?#

You should only reset your account activity when strictly necessary, most often to resolve stuck and pending transactions.

This function is intended primarily for developers, who may find it useful to clear an account’s activity on a test network while continuing to use the same account.

Note that resetting your wallet means restoring your OKX wallet to its initial state, and wiping out all the seed phrases, private keys, and wallet data. Once the reset is complete, you need to reimport your existing wallet in order to continue using it.

Note
Before resetting your account, you need to back up your wallet, or you will lose value in your accounts. For specific operations, please refer to this OKX Wallet guide.

To rest the account:

  1. Click the button in the top-right corner, and then go to Settings > Wallet security.

OKX wallet setting

  1. Click the Reset wallet button.

OKX wallet reset

Resources#

X Layer mainnet info#

Connecting to X Layer (Mainnet)#

You can add X Layer mainnet by inputting the following network info:

PropertiesNetwork details
Network nameX Layer mainnet
RPC URLhttps://rpc.xlayer.tech
Chain ID196
Token symbolOKB
Block explorer URLhttps://www.okx.com/explorer/xlayer

X Layer testnet info#

PropertiesNetwork details
Network nameX Layer testnet
RPC URLhttps://testrpc.xlayer.tech
Chain ID195
Token symbolOKB
Block explorer URLhttps://www.okx.com/explorer/xlayer-test