Generate a starting point
Write an example configuration you can edit:File structure
The configuration file has these top-level sections:
A minimal configuration for a local setup looks like this:
idps and networks following
Networks & identity providers.
Kernel
Thekernel section identifies this Wallet Gateway instance to dApps.
id(required): a stable, unique identifier, for example"my-gateway-prod".clientType(required):"remote"for a remote Wallet Gateway.publicUrl(optional): the base URL used to redirect clients. If omitted, it is derived from the server host and port. Set this when running behind a reverse proxy or load balancer.
Server
Theserver section configures binding, ports, and API paths.
port(optional, default3030): the port the server binds to. Also used to generate popup URLs in the discovery flow.dappPath(optional, default/api/v0/dapp): the path where dApps connect.userPath(optional, default/api/v0/user): the path used by the User UI and User API.allowedOrigins(optional, default["*"]): CORS allowed origins. In production, list exact origins instead of"*".requestSizeLimit(optional, default"1mb"): maximum request body size.requestRateLimit(optional, default10000): maximum requests per minute per IP (health endpoints excluded).admin(optional): the user ID granted admin privileges: the value of the JWTsubclaim, or ofdaml.com.usrfor self-issued tokens. Admins can manage networks and identity providers at runtime and see the Administration page. If omitted, network and IDP management is restricted to the configuration file.
Signing worker
When automations sign through an external custody provider,server.signingWorker controls the
background worker that completes transactions once the provider approves:
signingWorker.pollInterval(optional, default5000ms): how often the worker polls external signers (Fireblocks, Blockdaemon, DFNS) while a transaction stayspending. See Service account automations.
Store
Thestore connection determines where the Wallet Gateway persists sessions, wallet
configurations, networks, identity providers, and in-flight transactions. Three backends are
available:
passwordEnv names the environment variable that holds the database password. Prefer it over an
inline password so the credential comes from the environment (or a Kubernetes secret) rather
than the config file.
For PostgreSQL over TLS, add an ssl block to the connection. See
PostgreSQL over TLS/SSL.
Signing store
The optionalsigningStore is a secondary database used only when the Wallet Gateway signs
transactions itself (the internal signing provider). It uses the same connection options as
store. Omit it entirely when using a participant node or an external custody provider.
Hashing scheme
The optionalhashingScheme section selects the hashing scheme version used to compute
transaction hashes on the ledger. It defaults to HASHING_SCHEME_VERSION_V3 and can be
downgraded to HASHING_SCHEME_VERSION_V2 if a connected participant still requires it.
Administration page
The admin user (seeserver.admin) can use the Administration page at /admin in the User UI
to check that the Wallet Gateway is configured correctly. It shows notices about anything that
needs attention, such as deprecated configuration options or signing providers that are
unavailable.
Next steps
- Networks & identity providers: Connect to a validator and configure authentication.
- Configuration reference: Every field, all auth methods, and per-environment guidance.