This is a Next.js project bootstrapped with create-next-app.
First, run the development server:
npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun devOpen http://localhost:3000 with your browser to see the result.
You can start editing the page by modifying app/page.tsx. The page auto-updates as you edit the file.
This project uses next/font to automatically optimize and load Geist, a new font family for Vercel.
Use .env.local for local configuration.
NEXT_PUBLIC_PROJECT_ID: Reown project id.MAINNET_RPC_URL: Mainnet RPC URL used by server-side endpoints.NEXT_PUBLIC_HIDE_USDC_ON_REDEEM: Feature flag (defaultfalse). Set totrueor1to hideUSDCfrom redemption dropdowns while keeping deposits enabled.NEXT_PUBLIC_HIDE_USDT_ON_REDEEM: Feature flag (defaultfalse). Set totrueor1to hideUSDTfrom redemption dropdowns while keeping deposits enabled.NEXT_PUBLIC_HIDE_USDC_USDT_ON_REDEEM: Convenience flag to hide bothUSDCandUSDTon redeem.
In development and test builds, open the app with ?gmTxReview=1 to log each Status withdrawal transaction payload before it reaches the wallet. Review mode is disabled in production builds. The deposit experience lives at /; /deposit redirects there and preserves query parameters. Add gmSkip flags as needed, for example:
/?gmTxReview=1&gmSkip=send,balance,liquidity,attestation
Available skip flags are predeposit, liquidity, balance, allowance, send, receipt, and attestation. Use send when an impersonator can show eth_sendTransaction payloads but cannot actually sign or broadcast them; the app logs the request, returns a fake tx hash, and pauses. In the browser console, use window.gmTxReview.status(), advanceToGUnits({ shares }), advanceToCollateral({ amount }), markBridgeSubmitted({ amount, txHash, recipient }), and clear() to move through impersonator tests without signing real transactions.
To learn more about Next.js, take a look at the following resources:
- Next.js Documentation - learn about Next.js features and API.
- Learn Next.js - an interactive Next.js tutorial.
You can check out the Next.js GitHub repository - your feedback and contributions are welcome!
The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.
Check out our Next.js deployment documentation for more details.