This is a decentralized application that allows you to transfer MATIC tokens between two Ethereum addresses on the Goerli test network. The app was built using React, TailwindCSS, Hardhat, and Solidity.
- Connect your MetaMask wallet to the Goerli test network
- View your MATIC token balance
- Transfer MATIC tokens from one address to another
- Verify the transaction on Etherscan
To use this app, you will need the following:
- Node.js v12 or later
- MetaMask browser extension
- Clone this repository
- Install the dependencies:
npm install
- Start the local development server:
npm start
The app should be available at http://localhost:3000.
- Connect your MetaMask wallet to the Goerli test network.
- The app should display your MATIC token balance.
- Enter the recipient address and the amount of tokens you want to transfer.
- Click the "Transfer" button and confirm the transaction in your wallet.
- Wait for the transaction to be confirmed on the Goerli test network.
- Click the "View on Etherscan" button to view the transaction on Etherscan.
The smart contract used in this app was built using Solidity and deployed on the Goerli test network. The contract implements the ERC20 token standard and allows users to transfer MATIC tokens between two addresses.
The smart contract code can be found in the contracts
directory. To deploy the contract on the Goerli test network, you will need to have a private key with some test Ether on the Goerli network. You can use Hardhat to deploy the contract by running the following command:
npx hardhat run scripts/deploy.js --network goerli
If you would like to contribute to this project, feel free to submit a pull request. Before submitting a pull request, please make sure to run the tests and the linter:
npm run test npm run lint