Join our community of builders on Discord!

Connect to Testnet

Before interacting with the Lightchain AI Testnet, you need to add the network to your wallet.
[!NOTE] Lightchain AI Testnet is EVM-compatible.
Any wallet that supports custom EVM networks will work.

Automatic Setup

Click the button below to add the Lightchain AI Testnet to MetaMask automatically: šŸ‘‰ Add Lightchain AI Testnet to MetaMask

Manual Setup

If automatic setup doesn't work, add the network manually:
  1. Open MetaMask and click the network dropdown at the top.
  2. Select "Add a network manually".
  3. Enter the following details:
FieldValue
Network NameLightchain AI Testnet
New RPC URL
CodeHTML
Chain ID
CodeHTML
Currency Symbol
CodeHTML
Block Explorer
CodeHTML
  1. Click Save and switch to the Lightchain AI Testnet network.

2. Connect via Trust Wallet

  1. Open Trust Wallet and navigate to Settings → Network.
  2. Tap "Add Custom Network".
  3. Fill in the same network details listed above.
  4. Save and select the Lightchain AI Testnet as your active network.

3. Connect via Programmatic Configuration

Hardhat

Add the testnet to your
CodeHTML
or
CodeHTML
:
CodeJAVASCRIPT

Foundry

Add the testnet RPC to your Foundry workflow:
CodeBASH

ethers.js

CodeJAVASCRIPT

viem

CodeTYPESCRIPT

4. Verify Connection

After adding the network, confirm your connection:
  • Your wallet should display Lightchain AI Testnet as the active network.
  • Your balance will show
    CodeHTML
    until you claim tokens from the faucet.
  • Try fetching the latest block number to verify RPC connectivity:
CodeBASH
If you receive a valid hex block number in the response, your connection is working.

Next Steps

Now that you're connected, claim testnet LCAI tokens from the faucet.
Last updated: February 2026