Skip to main content
The bootstrap logic is fully driven by environment variables. Group them as below.

Core bootstrap

string
Overrides the default validator endpoint.
string
Used as the app-name fallback during transfer submission.
string
Initializes the wallet with this BIP39 phrase. Effectively “logs in” to wallets derived from this mnemonic.
string
default:"empty string"
Used as the BIP39 salt. Defaults to an empty string for compatibility with standard BIP39 wallets (Trust Wallet, Ledger, etc.) that don’t use a passphrase by default.

Authentication

string
Selected Identity Provider. Supported values: auth0, keycloak, custom, noop. Use noop to disable the authentication layer.
string
Expected aud claim in the JWT.
string
Comma-separated whitelist of accepted JWS asymmetric algorithms. Supported: RS256, RS384, RS512, ES256, ES384, ES512, EdDSA, Ed25519.

Identity Provider URLs

The set of variables used to derive the JWKS URL depends on AUTH_TYPE.
string
The base URL of your IdP.

Auto-Batch

boolean
default:"false"
Enables the background batching engine.
string
default:"in-memory"
Storage backend for batch state. Accepted: in-memory, psql. Use psql for production.
number
default:"200"
Maximum number of orders per batch.
duration
default:"1m"
How long the batching loop waits between batch preparation cycles.
duration
default:"10s"
How long the monitoring loop waits between polling cycles for in-flight batches.
duration
default:"5s"
Pause between individual submissions during a recovery pass (prevents ledger spikes).
duration
default:"2s"
How long the retry loop waits between retry cycles for failed batches.
number
default:"3"
Hard ceiling on submission attempts per batch. Once reached, the batch is marked terminal and its orders are released back to the queue.

PostgreSQL connection

Applies only when AUTO_BATCH_DB_TYPE=psql.
string
default:"localhost"
Database server hostname.
number
default:"5432"
Database server port.
string
default:"wallet_api"
Database name.
string
default:"wallet_user"
Database user.
string
default:"changeme"
Database password.

Connection pool

Applies to both in-memory and psql backends.
number
default:"50 (psql) / 10 (in-memory)"
Thread pool size for database operations.
number
default:"50 (psql) / 10 (in-memory)"
Maximum pool connections.
number
default:"10 (psql) / 2 (in-memory)"
Minimum idle connections kept alive.
number (ms)
default:"30000"
Milliseconds to wait for a connection before timing out.
number (ms)
default:"600000"
Milliseconds before an idle connection is evicted.

Log shipping

Leave LOKI_URL unset to keep log shipping disabled. The wallet writes the same JSON to stdout either way, so docker logs is unaffected.

Local logs

With LOKI_URL unset, the wallet does not ship logs to Cantor8. Logs stay in your infrastructure.

Share logs with Cantor8

Enable log shipping so the C8 team can troubleshoot with you without asking for a log dump. The container reads the three variables below itself. Nothing is installed on your Docker host, and no AWS credentials are involved.
string
The push endpoint provided by C8 for your environment, for example https://logs.<env>.digik.cantor8.tech/loki/api/v1/push. Use the endpoint supplied during integration; <env> is a placeholder.
string
The client ID issued by C8. It is also your log tenant, which keeps your logs separate from other clients. Set it to the same value as CLIENT_ID.
string
The matching secret provided by C8.

Log labels

Labels are attached when each line is written, rather than per request. They are also present on lines emitted by the HTTP layer, database layer, and SDK, so logs arrive already grouped.
For the environment file and deployment steps, see Enable log shipping.