/Matic_sharer

This is a decentralized application that allows you to transfer MATIC tokens between two Ethereum addresses on the Rinkeby test network. The app was built using React, TailwindCSS, Hardhat, and Solidity.

Primary LanguageJavaScript

Decentralized MATIC Tokens Transfer App

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.

Features

  • 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

Prerequisites

To use this app, you will need the following:

  • Node.js v12 or later
  • MetaMask browser extension

Installation

  1. Clone this repository
  2. Install the dependencies: npm install
  3. Start the local development server: npm start

The app should be available at http://localhost:3000.

Usage

  1. Connect your MetaMask wallet to the Goerli test network.
  2. The app should display your MATIC token balance.
  3. Enter the recipient address and the amount of tokens you want to transfer.
  4. Click the "Transfer" button and confirm the transaction in your wallet.
  5. Wait for the transaction to be confirmed on the Goerli test network.
  6. Click the "View on Etherscan" button to view the transaction on Etherscan.

Smart Contract

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

Contributing

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