Complete guide to understanding and using AvaxBurner
AvaxBurner is a decentralized application built on the Avalanche C-Chain that helps users clean their wallets by burning unwanted spam tokens, rug pulls, and malicious NFTs.
The platform integrates with GoPlus Security API to provide real-time risk assessment of tokens and NFTs, allowing users to make informed decisions about which assets to burn. Users earn 25% gas rebates for every burn operation, incentivizing wallet hygiene.
GoPlus API integration for real-time security analysis
Burn multiple tokens/NFTs in one transaction
Earn 25% of gas fees back on every burn
Core Wallet, MetaMask, WalletConnect
Switch between Mainnet and Fuji Testnet
Track all burns and rebates claimed
AvaxBurner follows a modern three-tier architecture:
The frontend communicates with the blockchain via ethers.js, while API routes handle external data fetching from GoPlus and the Avalanche network.
The AvaxBurner smart contract is the core of the application, handling all burn operations and rebate distributions.
burnTokens(address tokenAddress, uint256 amount)Burn a single ERC20 token
batchBurnTokens(address[] tokenAddresses, uint256[] amounts)Burn multiple ERC20 tokens in one transaction
burnNFT(address nftAddress, uint256 tokenId)Burn a single ERC721 NFT
batchBurnNFTs(address[] nftAddresses, uint256[] tokenIds)Burn multiple ERC721 NFTs in one transaction
claimRebate()Claim accumulated gas rebates
getUserStats(address user)Get burn count and pending rebates for a user
TokensBurned(address user, address token, uint256 amount, uint256 rebate)NFTBurned(address user, address nft, uint256 tokenId, uint256 rebate)RebateClaimed(address user, uint256 amount)The frontend is built with Next.js 16 and features a modern, responsive design.
/ - Landing pagePublic/dashboard - Asset scanner and burn interfaceAuth Required/history - Transaction historyAuth Required/docs - DocumentationPublicWalletConnectModalMulti-wallet connection dialog
AssetCardDisplays token/NFT with risk badge
BurnModalMulti-step burn confirmation UI
useWalletGlobal wallet state management
The application exposes several API routes for blockchain interactions and data fetching.
/api/scan-assetsScan wallet for tokens and NFTs with risk analysis
/api/burnPrepare burn transaction with gas estimates
/api/statsGet global platform statistics
/api/claim-rebateClaim accumulated gas rebates
1. Clone the repository
git clone https://github.com/yourusername/avaxburner.git2. Install dependencies
cd avaxburner && npm install3. Deploy smart contract
cd contracts && npm install && npx ts-node scripts/deploy-contract.ts4. Start development server
npm run devClick "Connect Wallet" and select your preferred wallet provider (Core Wallet, MetaMask, or WalletConnect). Choose between Mainnet or Fuji Testnet.
The dashboard automatically scans your wallet for all ERC20 tokens and ERC721 NFTs. Each asset is analyzed for security risks using the GoPlus API.
Use risk filters to quickly identify dangerous tokens. Click on assets to select them for burning. You can select multiple assets for batch operations.
Click "Burn Selected" to review your transaction. Check gas estimates and expected rebates. Sign the transaction in your wallet to complete the burn.
After burning, your gas rebates accumulate in the smart contract. Visit your dashboard to claim your 25% gas rebates at any time.