web3-react-tailwind-typescript-eth-client Tailwind Templates

Web3 React Tailwind Typescript Eth Client

Web3 application built using React, TailwindCSS, Typescript, Ethereum smart contract and Vite

Web3 React application

This application is a web3 application developed using react, typescript and solidity. Connect your wallet, send ethereum transactions including a reference to a gif, display latest transactions including the gif.

Demo

Setup

  • Setup smart contract
  • Create metamask account: https://metamask.io/
  • Install secret scanner: brew install git-secrets. More info at https://github.com/awslabs/git-secrets
  • Add common AWS patterns to the git config : git secrets --register-aws --global
  • Setup environment variable: export VITE_GIPHY_API_KEY=<giphyApiKey>. More info https://developers.giphy.com/docs/api#quick-start-guide.
  • Setup environment variable: export VITE_CONTRACT_ADDRESS=<contractAddress>. To get the contract address follow instructions from smart contract which should be printed to the console after running npx hardhat run scripts/deploy.js --network ropsten
  • Setup src/utils/Transactions.json: To generate this file, follow instructions from smart contract in the location artifacts/contracts/Transactions.sol/Transactions.json
  • Run: npm install
  • Run: npm run dev

Extra tools

  • Vite
  • TailwindCSS
  • Husky, lint-staged, prettier, eslint and git-secrets
  • Solidity contract can be found here

Initial tutorial code

Additional features

  • Improved styling and content
  • Error handling for transactions
  • Linting, husky and secret scanning
  • Disconnect wallet
  • More to follow

Top categories

Loading Svelte Themes