Skip to main content

Cross-Chain Token

Before You Begin
1
Environment
2
Wallet
A wallet with MetaMask or similar for testnet development
1
Clone & Setup
terminal
$git clone https://github.com/VIALabs-io/quickstart-token.git && cd quickstart-token
$npm install
$cp .env.example .env
Configure Private Key
Add your wallet's private key to the .env file:
PRIVATE_KEY=your_private_key_here
2
Deploy Your Token
terminal
$node scripts/deploy.js
3
Test Token Bridge
terminal
$node scripts/bridge.js avalanche-testnet base-testnet 5
4
Run the Frontend
terminal
$cd frontend
$npm install
$npm run dev
Complete
Your cross-chain token is now deployed, bridged, and the frontend is running. Open http://localhost:3000 in your browser to interact with your tokens.