Configuration

The defaults work out of the box. To override the frontend's, copy packages/nextjs/.env.example to packages/nextjs/.env.local; packages/foundry/.env is created from its .env.example when you install.

VariableFileDefaultUsed for
NEXT_PUBLIC_HEDERA_TESTNET_RPC_URLpackages/nextjs/.env.localhttps://testnet.hashio.io/apiWallet reads and transactions
NEXT_PUBLIC_MIRROR_NODE_URLpackages/nextjs/.env.localhttps://testnet.mirrornode.hedera.comOrder history, NFTs, associations, lag
NEXT_PUBLIC_WALLET_CONNECT_PROJECT_IDpackages/nextjs/.env.local, or your host's environmentscaffold's shared idWalletConnect QR for mobile wallets; set your own before you deploy (below)
HEDERA_RPC_URLpackages/foundry/.envhttps://testnet.hashio.io/apiThe hedera_testnet endpoint in foundry.toml: fork tests and yarn foundry:pool-gap
FORK_TESTSshellunsettrue runs the guard fork tests against live testnet

WalletConnect project id. Injected wallets (MetaMask, Rabby, HashPack in EVM mode) need no configuration. The WalletConnect QR, for mobile wallets, uses a project id: without one the app falls back to the scaffold's shared id, which is fine on localhost but is shared by every scaffold app and can be restricted to its owner's domains, so the QR may fail on yours. Before you deploy:

  1. Create a free project at cloud.reown.com (WalletConnect Cloud) and copy its project id.
  2. Add your site's domains to the project's allowed domains (for Vercel, the production domain and, if you use previews, the preview domain pattern).
  3. Set NEXT_PUBLIC_WALLET_CONNECT_PROJECT_ID: in packages/nextjs/.env.local for local builds, or on Vercel under Project → Settings → Environment Variables (Production and Preview), then redeploy. NEXT_PUBLIC_ values are built into the bundle, so a change needs a new build.

The id is public by design (it ships in the bundle), but keep it out of the repo, so forks of your app don't spend your quota. This repo commits none; the demo at limit-orders-demo.0xo.in sets its own on Vercel.

Deploys sign with a Foundry keystore, so no private key goes in any file.

From README.md at v1.1 (cee2d4e) · View source