Skip to content

Config Reference

Your node's configuration is stored in config.json, created by the setup wizard. Most fields are set automatically — you only need to edit them if you want to customise behaviour.

Core Settings

FieldTypeDefaultDescription
networkstring"testnet"Network to connect to
rpc_urlsarraySupra testnet RPCChain RPC endpoints
nft_idnumber(from wizard)Your trustee NFT ID
trustee_addressstring(from wizard)Your on-chain address
beneficiary_addressstring(from wizard)Where profits/withdrawals go
strategy_auth_tokenstring(random)Token your strategy uses to authenticate

Markets

FieldTypeDefaultDescription
marketsarray["EMM/KAY", "KAY/TEE", "TEE/EMM"]Active trading pairs
token_decimalsobject{"EMM": 5, "KAY": 5, "TEE": 5}Decimal places per token

Contracts

FieldTypeDefaultDescription
contracts.settlementstring(testnet addr)Settlement module address
contracts.escrowstring(testnet addr)Escrow module address
contracts.nftstring(testnet addr)NFT module address
contracts.pool_configstring(testnet addr)Pool config module address

All four point to the same deployer address on testnet. They're separate fields for future flexibility.

Network

FieldTypeDefaultDescription
bootstrap_peersarray5 testnet peersInitial peers to connect to
strategy_portnumber9090WebSocket port for strategy connections
gossip_portnumber9191P2P gossip port
chain_idnumber6Supra chain ID (6 = testnet, 8 = mainnet)

Gas

FieldTypeDefaultDescription
max_gas_amountnumber500000Maximum gas per transaction
gas_unit_pricenumber100Gas price per unit

Withdrawal

FieldTypeDefaultDescription
withdrawal_rules.holding_period_daysnumber90Days before full withdrawal after deregistration
withdrawal_rules.rushed_withdrawal_enabledbooltrueAllow rushed (partial) withdrawals

Environment Variables

These override config file values:

VariableDescription
DEADMKT_KEYSTORE_PASSWORDKeystore decryption password (required for Docker/automated setups)
DEADMKT_NO_STRATEGYSet to 1 to disable the built-in strategy and expose the WS port for an external agent
DEADMKT_STRATEGY_PATHPath to a Python strategy file (default: /data/strategy.py)
DEADMKT_CONTRACT_ADDROverride contract address
DEADMKT_DIAL_PEERSComma-separated peer addresses to connect to
GOSSIP_PORTExternal gossip port for Docker NAT (advertised to peers for inbound connections)

Alpha Testnet