No description
  • Python 98.6%
  • Dockerfile 1.4%
Find a file
2026-05-25 07:51:58 +02:00
Containerfile Initial commit 2026-05-25 07:51:58 +02:00
db.py Initial commit 2026-05-25 07:51:58 +02:00
faucet.py Initial commit 2026-05-25 07:51:58 +02:00
gpg.py Initial commit 2026-05-25 07:51:58 +02:00
main.py Initial commit 2026-05-25 07:51:58 +02:00
README.md Initial commit 2026-05-25 07:51:58 +02:00
registry.py Initial commit 2026-05-25 07:51:58 +02:00
requirements.txt Initial commit 2026-05-25 07:51:58 +02:00

Required env vars:

  • ADMIN_KEY: any string, used for certain actions
  • REGISTRY_PATH: the path to dn42 registry
  • FAUCET_WALLET: the 64-char hex faucet node wallet ID (used with the configured RPC)
  • FAUCET_ADDRESS: the faucet wallet address

Optional:

  • LEDGER_PATH: the path to node data.ldb, default none so /api/ledger is disabled
  • RPC_URL: default http://127.0.0.1:42786. note that this needs to be enable_control and hold the faucet keys
  • DB_PATH: default data.db
  • FAUCET_AMOUNT: default 42, in DNC, not raw

Example deployment:

[Container]
Image = git.m724.eu/dn724/dncoin-api
AutoUpdate = registry

PodmanArgs=--platform linux/amd64
Network=pasta:-T,42786:42786

PublishPort=[::1]:5420:5000

Volume=dncoin-api:/persist
Volume=/opt/registry:/registry:ro
Volume=dncurrency:/ledger:ro

Environment=ADMIN_KEY=ba2bdba4127484cc58be966a2e107776bc20e4f481e845e0
Environment=DB_PATH=/persist/data.db
Environment=REGISTRY_PATH=/registry
Environment=LEDGER_PATH=/ledger/data.ldb
Environment=FAUCET_WALLET=64D4163F6C42FA46A41767DB3F3C3A95FCDDDC8BDB00DD073F5B2848EAE996BD
Environment=FAUCET_ADDRESS=dn_3faucet8krhhs1dnrypdzo6tiiqasowafe87mc4jb5yjrgztngejz1gxq49s

[Service]
Restart = always

[Install]
WantedBy=default.target multi-user.target