A NextJs implementation of a WETH contract, allowing the user to wrap and unwrap ETH into WETH.
This implementation includes:
- Wallet signing using RainbowKit
- Safe signing using the Safe SDK (@safe-global/api-kit, @safe-global/relay-kit)
- Node.js
- Credentials for Pimlico
- Credentials for RainbowKit
- Install dependencies:
pnpm install
- Configure environment:
cp .env.example .env
- Add your credentials for Pimlico and RainbowKit to the
.env
file.
Note: This implementation has been tested on Sepolia testnet.
Start the development server:
pnpm dev
The server runs on port 3000 by default. You can visit it on your browser at http://localhost:3000
.