A decentralized application for locking and unlocking ERC20 tokens on the Ethereum Sepolia testnet.
- Connect wallet using MetaMask or WalletConnect
- View token balances (available, locked, and total locked)
- Lock tokens with approval flow
- Unlock tokens after cooldown period
- View transaction history with Etherscan links
- Auto-refresh balances every 10 seconds
- Token Contract:
0x2d9D5aD216747Fa621e52b74E95B5fD128D4cee2 - Lock Contract:
0x012b41f56474d191d4784137DA2740f8a490Fb11
- Clone the repository:
git clone https://github.com/yourusername/token-lock-dapp.git
cd token-lock-dapp- Install dependencies:
npm install- Create a
.env.localfile in the root directory and add your Infura project ID:
NEXT_PUBLIC_RPC_URL_SEPOLIA=https://sepolia.infura.io/v3/your-project-id
- Start the development server:
npm run dev- Open http://localhost:3000 in your browser.
- Node.js 18.x or later
- MetaMask or a WalletConnect compatible wallet
- Some Sepolia testnet ETH for gas fees
- Next.js
- TypeScript
- Tailwind CSS
- ethers.js
- Web3-React
- WalletConnect
MIT