Do not use.
The ERC20 Token Manager Snap is a MetaMask Snap that allows users to interact with ERC20 tokens directly from their MetaMask wallet. This snap provides functionality to view token details, approve token spending, and transfer tokens.
- Get token details (name, symbol, decimals)
- Approve token spending
- Transfer tokens
- User-friendly dialogs for confirmations and notifications
- MetaMask Flask (the developer version of MetaMask that supports Snaps)
- Node.js and npm
-
Clone the repository:
git clone https://github.com/your-username/erc20-token-manager-snap.git cd erc20-token-manager-snap
-
Install dependencies:
npm install
-
Build the snap:
npm run build
-
Serve the snap locally:
npm run serve
-
Ensure MetaMask Flask is installed and running in your browser.
-
Navigate to
http://localhost:8000
in your browser. -
Click "Connect to MetaMask" to connect the snap to your MetaMask wallet.
-
Use the provided buttons to interact with ERC20 tokens:
- "Get Token Details": Retrieve information about a specific ERC20 token.
- "Approve Token": Approve spending of a token by another address.
- "Transfer Token": Transfer tokens to another address.
To make changes to the snap:
- Modify the code in
src/index.js
. - Rebuild the snap:
npm run build
- Restart the server:
npm run serve
(Add information about your testing setup and how to run tests)
This snap interacts with ERC20 tokens and can initiate transactions. Always verify the token addresses and transaction details before confirming any operations.