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.
| Variable | File | Default | Used for |
|---|---|---|---|
NEXT_PUBLIC_HEDERA_TESTNET_RPC_URL | packages/nextjs/.env.local | https://testnet.hashio.io/api | Wallet reads and transactions |
NEXT_PUBLIC_MIRROR_NODE_URL | packages/nextjs/.env.local | https://testnet.mirrornode.hedera.com | Order history, NFTs, associations, lag |
NEXT_PUBLIC_WALLET_CONNECT_PROJECT_ID | packages/nextjs/.env.local, or your host's environment | scaffold's shared id | WalletConnect QR for mobile wallets; set your own before you deploy (below) |
HEDERA_RPC_URL | packages/foundry/.env | https://testnet.hashio.io/api | The hedera_testnet endpoint in foundry.toml: fork tests and yarn foundry:pool-gap |
FORK_TESTS | shell | unset | true 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:
- Create a free project at cloud.reown.com (WalletConnect Cloud) and copy its project id.
- 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).
- Set
NEXT_PUBLIC_WALLET_CONNECT_PROJECT_ID: inpackages/nextjs/.env.localfor 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
Deploy your own vault
This deploys OrderVault with its four libraries (MarketGuard, MarketRegistry, OrderCollection, Settlement), creates the NFT collection, lists both markets…
How an order works
How OrderVault works, what each Hedera service does in it, what an order costs, and how it can fail. The README covers setup and the live proofs.