xenide / transfer-from

Repository from Github https://github.comxenide/transfer-fromRepository from Github https://github.comxenide/transfer-from

Token Approval Manager

A modern web3 application for managing ERC20 token approvals. This tool helps users and DAOs manage their token approvals safely and efficiently.

Features

  • Connect your wallet using various providers (MetaMask, WalletConnect, etc.)
  • Approve specific amounts of tokens to spender addresses
  • Revoke existing token approvals
  • Support for all ERC20 tokens
  • Dark mode support
  • Responsive design

Prerequisites

  • Bun installed on your system
  • A Web3 wallet (MetaMask, WalletConnect compatible wallets)
  • A WalletConnect Project ID (for wallet connections)

Getting Started

  1. Clone the repository
  2. Install dependencies:
bun install
  1. Create a .env.local file in the root directory and add your WalletConnect Project ID:
NEXT_PUBLIC_WALLET_CONNECT_PROJECT_ID=your_project_id_here
  1. Start the development server:
bun dev

Open http://localhost:3000 with your browser to see the application.

Usage

  1. Connect your wallet using the "Connect Wallet" button
  2. Enter the token address you want to manage approvals for
  3. Enter the spender address (the address you want to approve/revoke)
  4. Enter the amount you want to approve (not needed for revoke)
  5. Click "Approve" to approve the amount or "Revoke" to revoke the approval

Tech Stack

  • Next.js 14 (React)
  • TypeScript
  • TailwindCSS
  • RainbowKit
  • wagmi
  • ethers.js

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

MIT

About


Languages

Language:TypeScript 90.1%Language:JavaScript 6.0%Language:CSS 3.9%