/wagmi-example

Ethereum library Wagmi Example

Primary LanguageTypeScriptMIT LicenseMIT

wagmi-example

Setup

Refer to wagmi Getting Started

npm init wagmi

The below is generated package.json

{
  "name": "wagmi-app",
  "version": "0.0.1",
  "private": true,
  "scripts": {
    "dev": "next dev",
    "build": "next build",
    "start": "next start",
    "lint": "next lint"
  },
  "dependencies": {
    "ethers": "^5.7.2",
    "next": "^13.0.0",
    "react": "^18.2.0",
    "react-dom": "^18.2.0",
    "wagmi": "~0.12.13"
  },
  "devDependencies": {
    "@types/node": "^17.0.31",
    "@types/react": "^18.0.9",
    "@types/react-dom": "^18.0.3",
    "eslint": "^8.15.0",
    "eslint-config-next": "^12.1.6",
    "typescript": "^4.9.4"
  }
}

Run npm run dev and access to http://localhost:3000/

first page

wagmi Action

npm i @wagmi/core