gotchi-channeling
Channel Alchemica for configured gotchi/parcel pairs.
Scripts
- Outputs
ready:0 or
waiting:<seconds>.
- Fails if RPC query fails.
- Validates cooldown, submits tx via Bankr, prints tx hash.
- Iterates
config.json pairs and channels only ready gotchis.
Config
INLINECODE6 keys:
- - INLINECODE7
- INLINECODE8
- INLINECODE9
- INLINECODE10 entries: INLINECODE11
Optional env:
- -
GOTCHI_CHANNELING_CONFIG_FILE override config path. - INLINECODE13 overrides
rpcUrl.
Bankr API key resolution
- 1. INLINECODE15
- INLINECODE16
- INLINECODE17
- INLINECODE18
Quick use
CODEBLOCK0
Safety notes
- - Cooldown enforced at 24h (
86400 seconds). - Scripts fail closed on RPC/config/tool errors.
- Batch mode exits non-zero when any entry fails.
gotchi-channeling
为已配置的gotchi/地块对引导Alchemica。
脚本
- - ./scripts/check-cooldown.sh
- 输出 ready:0 或 waiting:
。
- 若RPC查询失败则报错。
- 验证冷却时间,通过Bankr提交交易,打印交易哈希。
- - ./scripts/channel-all.sh
- 遍历 config.json 中的配对,仅引导已就绪的gotchi。
配置
config.json 键值:
- - realmDiamond
- rpcUrl
- chainId
- channeling[] 条目:{ parcelId: ..., gotchiId: ..., description: ... }
可选环境变量:
- - GOTCHICHANNELINGCONFIGFILE 覆盖配置路径。
- BASEMAINNET_RPC 覆盖 rpcUrl。
Bankr API密钥解析顺序
- 1. BANKRAPIKEY
- systemctl --user show-environment
- ~/.openclaw/skills/bankr/config.json
- ~/.openclaw/workspace/skills/bankr/config.json
快速使用
bash
./scripts/check-cooldown.sh 9638
./scripts/channel.sh 9638 867
./scripts/channel-all.sh
安全说明
- - 冷却时间强制为24小时(86400秒)。
- 脚本在RPC/配置/工具错误时安全终止。
- 批量模式下,任何条目失败时退出码为非零值。