-
Notifications
You must be signed in to change notification settings - Fork 50
Expand file tree
/
Copy path.env.example
More file actions
53 lines (45 loc) · 2.51 KB
/
.env.example
File metadata and controls
53 lines (45 loc) · 2.51 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# ─── Network ───────────────────────────────────────────────
NETUID=7
WALLET_NAME=default
HOTKEY_NAME=default
WALLET_PATH=~/.bittensor/wallets
# Subtensor endpoint. Validators should point at a local lite node for cheap
# commitment polling. Examples:
# SUBTENSOR_NETWORK=local # ws://127.0.0.1:9944 (lite node or dev env)
# SUBTENSOR_NETWORK=finney # public mainnet entrypoint
# SUBTENSOR_NETWORK=ws://host:9944 # custom remote node
SUBTENSOR_NETWORK=finney
PORT=8091
LOG_LEVEL=info
# ─── Contract ──────────────────────────────────────────────
# Override the default Allways Swap Manager contract address. Leave unset to
# use the bundled mainnet default. Set this when running against testnet,
# the dev environment, or a forked deployment.
CONTRACT_ADDRESS=
# ─── Chain: Bitcoin (env_prefix=BTC) ───────────────────────
# node = local Bitcoin node | lightweight = Blockstream API (no node required)
BTC_MODE=lightweight
# mainnet | testnet (auto-detected from RPC URL in node mode)
BTC_NETWORK=mainnet
# Required for BTC_MODE=node only
BTC_RPC_URL=
BTC_RPC_USER=
BTC_RPC_PASS=
# ─── Bitcoin signing (users + miners) ──────────────────────
# WIF private key. Required for miners in lightweight mode. Optional for
# users running `alw swap`: when set, the CLI signs and broadcasts BTC
# sends locally; when unset, the CLI falls back to a bring-your-own-signature
# flow and you broadcast via your own wallet.
BTC_PRIVATE_KEY=
# ─── Miner-only ───────────────────────────────────────────
MINER_BTC_ADDRESS=
# Skip fulfilling a swap when fewer than this many blocks remain before its
# timeout. Guards against slow dest-chain inclusion turning a send into a
# slash. Default: 5 blocks (~1 min at 12s). Set to 0 to disable.
MINER_TIMEOUT_CUSHION_BLOCKS=5
# Bittensor coldkey password for headless miners. The miner unlocks the
# coldkey once at startup so per-swap TAO transfers don't re-prompt; when the
# process runs detached from a TTY (pm2/systemd) the prompt would otherwise
# fail and every fulfillment would error with "password invalid". Leave unset
# to be prompted interactively at launch.
MINER_BITTENSOR_COLDKEY_PASSWORD=