360 Secure SkillHub
360 安全技能中心

Gotchi Channeling

面向 Aavegotchi 的 Bash 脚本集合:读取 config.json 中的 gotchi/parcel 配对,先用 check-cooldown.sh 查询 24 小时冷却,再由 channel.sh 通过 Bankr 在 Base 上提交 channel 交易并输出交易哈希,channel-all.sh 批量处理已就绪项,失败时返回非零退出码。

aaigotchi
aaigotchi
热度 60.13
最近更新 2026-05-11 17:26:37
分类:自动化依赖:代码执行 / 第三方 API / 读写文件应用场景:自动化脚本 / 工作流

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add gotchi-channeling
Metadata
name
gotchi-channeling
description
Channel Aavegotchis on Base via Bankr. Checks cooldown, builds calldata, and submits channel txs safely.
homepage
https://github.com/aaigotchi/gotchi-channeling
metadata
{"openclaw":{"requires":{"bins":["cast","jq","curl"],"env":["BANKR_API_KEY"]},"primaryEnv":"BANKR_API_KEY"}}

gotchi-channeling

Channel Alchemica for configured gotchi/parcel pairs.

Scripts

  • ./scripts/check-cooldown.sh <gotchi-id>
    • Outputs ready:0 or waiting:<seconds>.
    • Fails if RPC query fails.
  • ./scripts/channel.sh <gotchi-id> <parcel-id>
    • Validates cooldown, submits tx via Bankr, prints tx hash.
  • ./scripts/channel-all.sh
    • Iterates config.json pairs and channels only ready gotchis.

Config

config.json keys:

  • realmDiamond
  • rpcUrl
  • chainId
  • channeling[] entries: { "parcelId": "...", "gotchiId": "...", "description": "..." }

Optional env:

  • GOTCHI_CHANNELING_CONFIG_FILE override config path.
  • BASE_MAINNET_RPC overrides rpcUrl.

Bankr API key resolution

  1. BANKR_API_KEY
  2. systemctl --user show-environment
  3. ~/.openclaw/skills/bankr/config.json
  4. ~/.openclaw/workspace/skills/bankr/config.json

Quick use

./scripts/check-cooldown.sh 9638
./scripts/channel.sh 9638 867
./scripts/channel-all.sh

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.