Skip to content

Latest commit

 

History

History
43 lines (28 loc) · 1.91 KB

README.md

File metadata and controls

43 lines (28 loc) · 1.91 KB

Template for an onchain app, utilizing the Coinbase Smart Wallet, WAGMI, and Expo router.

Huge thanks to the Coinbase team who created ths Smart Wallet Expo Example.

This example focuses on Expo Router and making the smart wallet compatible. It takes care of all polyfills for the Smart Wallet, WAGMI, and sets up an (auth) guard for your app.

Get started

  1. Install dependencies

    npm install
  2. Start the app

     npx expo start

In the output, you'll find options to open the app in a

You can start developing by editing the files inside the app directory. This project uses file-based routing.

What's in here

  • polyfills.js - Includes all polyfills needed for the Coinbase Smart Wallet. Imported at the top of your root _layout.tsx
  • entrypoint.js - Includes polyfills needed to use WAGMI and send transactions. In the package.json your main is now this.
  • config.ts - WAGMI config with Coinbase smart wallet
  • (auth) - Feel free to change this if you want, but I like to protect routes before a wallet connection.

Learn more

To learn more about developing your project with Expo, look at the following resources: