mirror of
https://github.com/Such-Software/grin-lws.git
synced 2026-10-17 07:31:34 +02:00
A standalone, self-hostable Grin light-wallet-server mirroring the Monero LWS: register a view/rewind credential, run a background chain scanner, rewind outputs against registered keys, store per-account matches in a DB, and serve balance / outputs / broadcast / height fast (vs the current on-demand stateless scan proxy). This is the scaffold — README (architecture + HTTP surface + DB schema + how a wallet backend proxies to it), Cargo skeleton, migrations sketch, and route/scanner stubs. Public-clean: no operator-specific infra, hosts, or secrets.
33 lines
1.2 KiB
Bash
33 lines
1.2 KiB
Bash
# grin-lws configuration. Copy to .env and fill in.
|
|
#
|
|
# PUBLIC-CLEAN: every value below is generic. There are no hostnames, operator
|
|
# IPs, or secrets baked into this repo — point it at your own grin node + DB.
|
|
|
|
# HTTP bind address. Bind to loopback / a private network: the user API is not
|
|
# authenticated at this layer (the proxying backend does user auth).
|
|
GRINLWS_BIND=127.0.0.1:3480
|
|
|
|
# Database. Postgres for scale, or a SQLite file for a single operator.
|
|
# DATABASE_URL=postgres://grinlws:grinlws@127.0.0.1:5432/grinlws
|
|
DATABASE_URL=sqlite://grin-lws.db
|
|
|
|
# grin node Foreign API v2 (JSON-RPC): tip, block reads, and broadcast.
|
|
GRIN_NODE_URL=http://127.0.0.1:3413/v2/foreign
|
|
# Optional basic-auth secret for the node Foreign API (empty = none).
|
|
GRIN_NODE_API_SECRET=
|
|
|
|
# Background scanner tuning.
|
|
GRINLWS_SCAN_POLL_SECS=15
|
|
GRINLWS_SCAN_BATCH_BLOCKS=100
|
|
|
|
# Restore-depth bound: how many days behind the tip a newly registered account
|
|
# may start scanning from. 0 = unbounded.
|
|
GRINLWS_RESTORE_MAX_DEPTH_DAYS=0
|
|
|
|
# Optional shared bearer that gates the admin API (/list_accounts, /rescan).
|
|
# Empty = admin API disabled.
|
|
GRINLWS_ADMIN_KEY=
|
|
|
|
# Log filter.
|
|
RUST_LOG=grin_lws=info
|