Skip to main content

Cross-Chain NFT

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-nft.git && cd quickstart-nft
$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 NFT
terminal
$node scripts/deploy.js
3
Mint NFT and Bridge
terminal
$node scripts/bridge.js avalanche-testnet
$node scripts/bridge.js avalanche-testnet base-testnet 431130000
4
Run the Frontend
terminal
$cd frontend
$npm install
$npm run dev
Complete
Your cross-chain NFT is now deployed, bridged, and the frontend is running. Open http://localhost:3000 in your browser to interact with your NFTs.