Skip to content

StyleList94/stylish-ethereum-dapp

Repository files navigation

Stylish Ethereum DApp

Create stylish EVM based DApp

Deploy with Vercel

Feature

Account

  • connect/Disconnect wallet
  • account status

Network

  • network status
  • switching network

Smart contract launcher

  • read/white the function specified in the ABI
  • includes ERC20, ERC721, ERC4626 ABI

Unit converter

  • convert Ether to Gwei, Wei

Sign message

  • signing a message
  • recover signed address

Send transaction

  • send native token

Transaction center

  • watching pending transaction
  • latest tx receipt
  • toasting transaction status

Gas Tracker

  • Gas tracking via Etherscan API

Metadata

  • error boundary component
  • custom 404 Not found page
  • images(icon, opengraph)

Tech Spec

Core

  • React
  • Next.js

EVM

  • wagmi
  • viem

State management

  • zustand

Styling

  • tailwindcss
  • shadcn/ui

Testing

  • Vitest
  • React Testing Library

Code Formatter

  • ESLint
  • Prettier

Getting Started

pnpm create next-app --example https://github.com/StyleList94/stylish-ethereum-dapp

Custom RPC

RPC requests are implemented as proxy APIs. /rpc/[network]

If you are using ‘Alchemy’, you can use the request without any customization by configuring the ALCHEMY_API_KEY environment variable.

Gas Tracker

To use the gas tracker implemented with the Etherscan API, you must specify the Etherscan API Key in the ETHERSCAN_API_KEY environment variable.

Since gas tracker requests are also handled by a proxy, you must specify the origin URL in the ORIGIN environment variable during deployment.