USDC Transfer
Overview
React Native Expo application demonstrating wallet provisioning, faucet funding, and gas-sponsored ERC-20 transfers
Project Structure
usdc/my-app/
├── app/
│ ├── index.tsx # Entry point
│ └── _layout.tsx # Root layout with OpenfortProvider
├── components/
│ ├── MainAppScreen.tsx # Transfer interface
│ ├── UserScreen.tsx # Main authenticated screen
│ ├── LoginScreen.tsx # Authentication
│ └── onboarding/ # Wallet creation flow
├── utils/
│ ├── erc20.ts # ERC-20 token operations
│ ├── config.ts # Environment config
│ └── format.ts # Number formatting
├── constants/
│ ├── erc20.ts # Token constants
│ └── network.ts # Network configurations
└── types/
└── wallet.ts # TypeScript definitions
Key Features
- Embedded wallet authentication via Openfort Shield
- Dual-wallet management with gas-sponsored USDC transfers
- Faucet integration for Sepolia USDC
- Real-time balance polling across networks
Component | Technology |
---|---|
Frontend | React Native + Expo |
Blockchain | Ethereum Sepolia & Base Sepolia |
Key Libraries | @openfort/react-native , expo-router |
Tooling | Expo CLI |
Setup
- Copy
.env.example
to.env.local
- Add Openfort credentials
- Install dependencies:
npm install
- Run:
npm start
Prerequisites
- Node.js 18+
- Expo CLI
- Openfort dashboard project