Skip to content

Latest commit

 

History

History
79 lines (52 loc) · 1.92 KB

File metadata and controls

79 lines (52 loc) · 1.92 KB

Privy Smart Wallet Next.js Starter

This project is a Next.js starter application that demonstrates the integration of Privy Smart Wallets for signing and executing transactions on the Base and Base Sepolia networks.

Features

  • Privy authentication and embedded wallets
  • Smart wallet integration
  • Signing messages
  • Sending USDC transactions
  • Chain switching between Base and Base Sepolia
  • Balance display for both embedded and smart wallets

Getting Started

  1. Clone the repository
  2. Install dependencies:
yarn install
  1. Set up your environment variables:

Create a .env.local file in the root directory and add your Privy App ID:

NEXT_PUBLIC_PRIVY_APP_ID=your_privy_app_id_here
  1. Run the development server:
npm run dev

Open http://localhost:3000 with your browser to see the result.

Project Structure

  • app/: Contains the main application pages and layout
  • components/: Reusable React components
  • lib/: Utility functions and constants
  • public/: Static assets

Dependencies

Key dependencies include:

  • Next.js
  • React
  • Privy SDK (@privy-io/react-auth, @privy-io/wagmi)
  • Wagmi
  • Viem
  • NextUI

For a full list of dependencies, refer to the package.json file.

Learn More

To learn more about the technologies used in this starter:

Deployment

This project can be easily deployed on Vercel. For more details, check out the Next.js deployment documentation.

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

This project is open source and available under the MIT License.