DOME Docs

Configuration

Environment variables for @dome/sdk-evm and host apps.

Configure these DOME_* variables before running deposit, withdraw, or balance checks.

Required (client)

VariableDescription
DOME_EVM_INDEXER_URLBackend base URL (indexer + relayer)
DOME_BASE_RPCBase / Base Sepolia JSON-RPC
DOME_ETH_POOL_ADDRESSEtherPool proxy address
DOME_FEE_RECIPIENT_ADDRESSProtocol fee recipient
DOME_CIRCUIT_KEY_BASE_PATHURL prefix for transaction2.wasm / .zkey (no trailing slash)

Optional (client)

VariableDescription
DOME_CHAIN_ID84532 (Sepolia) or 8453 (mainnet)
DOME_USDC_POOL_ADDRESSPrivate USDC pool (when deployed)
DOME_USDC_TOKEN_ADDRESSUSDC token address
DOME_RELAYER_SECRETSent on withdraw when using public relayer
DOME_RELAYER_WITHDRAW_URLOverride relayer endpoint
PRIVATE_KEYSigner for CLI scripts / Node integrations

Testnet example

export DOME_EVM_INDEXER_URL=https://api.getdome.app
export DOME_BASE_RPC=https://base-sepolia.g.alchemy.com/v2/YOUR_KEY
export DOME_ETH_POOL_ADDRESS=0x...        # base-sepolia-deploy.json
export DOME_FEE_RECIPIENT_ADDRESS=0x...
export DOME_CHAIN_ID=84532
export DOME_CIRCUIT_KEY_BASE_PATH=https://circuits.getdome.app/transaction
export DOME_RELAYER_SECRET=...            # if backend requires it
export PRIVATE_KEY=0x...

Circuits

The SDK loads:

{keyBasePath}2.wasm   → transaction2.wasm
{keyBasePath}2.zkey   → transaction2.zkey

Hosted testnet:

https://circuits.getdome.app/transaction2.wasm
https://circuits.getdome.app/transaction2.zkey

See Circuit Hosting.

Pool config API

Validate env before transacting:

curl -s "$DOME_EVM_INDEXER_URL/config" | jq

Host app mapping

Framework apps often use build-time env vars and map them before importing the SDK:

AppConfig module
dome-webapp/wallet/configureSdk.ts, .env.local
dome-mobilesrc/dome/configureSdk.ts, .env

Run bash scripts/web/configure-sepolia-env.sh or bash scripts/mobile/configure-sepolia-env.sh to sync from the deploy manifest.

Web proxy (dome-web)

Browser wallet — same-origin proxy to backend:

DOME_BACKEND_URL=https://api.getdome.app
DOME_EVM_INDEXER_URL=/api/indexer
DOME_BASE_RPC=/api/rpc

Next.js proxies /api/indexer/* and /api/rpc to DOME_BACKEND_URL.

Backend environment

Server-side variables for @dome/backend: Backend & Indexer.

Install

npm install github:Dome-Foundation/dome-sdk-evm#main
# or monorepo:
npm install @dome/sdk-evm@file:../dome-sdk-evm

On this page