Examples
Common SDK integration patterns.
Check shielded balance
After deposits, sync the indexer and decrypt notes with the wallet viewing key:
node dome-sdk-evm/scripts/smoke-sepolia.mjs balanceDeposit ETH
node dome-sdk-evm/scripts/smoke-sepolia.mjs deposit 0.001Requires ETH on the signer wallet for the deposit amount plus gas.
Withdraw to a fresh address
node dome-sdk-evm/scripts/smoke-sepolia.mjs withdraw 0.0006Uses the relayer when DOME_EVM_INDEXER_URL points at a backend with a funded relayer key.
Integration test (local)
cd dome-backend
npm run test:integrationRuns deposit → indexer sync → withdraw against Hardhat using @dome/sdk-evm.
Wallet apps
- Web —
cd dome-web && npm run dev(configure.env.localfor Sepolia) - Mobile —
dome-mobilewith Expo; env fromscripts/mobile/configure-sepolia-env.sh
For production integrations, pin package versions and host your own backend + circuit CDN or use Dome's testnet infrastructure during development.