Trade on Hyperliquid
Overview
Expo React Native application showcasing how Openfort's embedded wallets integrate with Hyperliquid's testnet exchange.
Project Structure
hyperliquid/
├── app/
│ ├── _layout.tsx
│ └── index.tsx
├── components/
│ ├── LoginScreen.tsx
│ ├── MainAppScreen.tsx
│ ├── UserScreen.tsx
│ └── onboarding/
│ ├── CreateWalletScreen.tsx
│ └── FundHyperliquidScreen.tsx
├── constants/
│ ├── hyperliquid.ts
│ └── network.ts
├── services/
│ ├── HyperliquidClient.ts
│ └── walletRecovery.ts
├── utils/
│ ├── config.ts
│ └── transactions.ts
└── entrypoint.ts
Key Features
- Openfort embedded wallet authentication
- Hyperliquid price polling and balance display
- Guided trade flow
- Reusable onboarding screens
Component | Technology |
---|---|
Frontend | React Native + Expo |
Blockchain | Arbitrum Sepolia |
Key Libraries | @nktkas/hyperliquid , @openfort/react-native |
Navigation | Expo Router |
Setup
Before running this sample, you need to set up Hyperliquid testnet access:
-
Login to Hyperliquid: Create an account and login at Hyperliquid
-
Deposit USDC on Mainnet: You must deposit at least 5 USDC on the Hyperliquid mainnet to gain access to the testnet faucet
-
Get Testnet Funds: Once you have deposited 5 USDC on mainnet, claim 1000 mock USDC from the testnet faucet at: https://app.hyperliquid-testnet.xyz/drip
-
Note Your Wallet Address: Copy the address of your logged-in Hyperliquid wallet for the next step
-
Copy
.env.example
to.env.local
-
Populate environment variables
-
Install dependencies:
npm install
-
Run:
npm start
Prerequisites
- Node.js 18+
- npm or yarn
- Expo CLI
- Hyperliquid mainnet account
- Openfort dashboard project