veil
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseVeil
Veil
This skill wraps the CLI to make Veil operations agent-friendly.
@veil-cash/sdk本Skill封装了 CLI,使Veil操作更适配Agent。
@veil-cash/sdkWhat it does
功能介绍
- Key management: generate and store a Veil keypair locally
- Status check: verify configuration, registration, and relay health
- Balances: combined ,
balance,queue-balanceprivate-balance - Deposits via Bankr: build a Bankr-compatible unsigned transaction and ask Bankr to sign & submit it
- Private actions: ,
withdraw,transferare executed locally usingmerge(ZK/proof flow)VEIL_KEY
- 密钥管理:在本地生成并存储Veil密钥对
- 状态检查:验证配置、注册信息及中继节点健康状态
- 余额查询:整合、
balance、queue-balance三种余额信息private-balance - 通过Bankr存款:构建与Bankr兼容的未签名交易,并请求Bankr进行签名和提交
- 私密操作:(提款)、
withdraw(转账)、transfer(合并)操作通过本地merge执行(基于ZK/证明流程)VEIL_KEY
File locations (recommended)
推荐文件位置
- Veil keys: (chmod 600)
~/.clawdbot/skills/veil/.env.veil - Bankr API key:
~/.clawdbot/skills/bankr/config.json
- Veil密钥:(需设置权限chmod 600)
~/.clawdbot/skills/veil/.env.veil - Bankr API密钥:
~/.clawdbot/skills/bankr/config.json
Quick start
快速开始
1) Install the Veil SDK
1) 安装Veil SDK
Option A: Global npm install (recommended)
bash
npm install -g @veil-cash/sdkOption B: Clone from GitHub
bash
mkdir -p ~/.openclaw/workspace/repos
cd ~/.openclaw/workspace/repos
git clone https://github.com/veildotcash/veildotcash-sdk.git
cd veildotcash-sdk
npm ci && npm run build选项A:全局npm安装(推荐)
bash
npm install -g @veil-cash/sdk选项B:从GitHub克隆
bash
mkdir -p ~/.openclaw/workspace/repos
cd ~/.openclaw/workspace/repos
git clone https://github.com/veildotcash/veildotcash-sdk.git
cd veildotcash-sdk
npm ci && npm run build2) Configure Base RPC (recommended)
2) 配置Base RPC(推荐)
Veil queries a lot of blockchain data (UTXOs, merkle proofs, etc.), so public RPCs will likely hit rate limits. A dedicated RPC from Alchemy, Infura, or similar is recommended.
Put in one of these:
RPC_URL=...- (preferred)
~/.clawdbot/skills/veil/.env - or the SDK repo (less ideal)
.env
Example:
bash
mkdir -p ~/.clawdbot/skills/veil
cat > ~/.clawdbot/skills/veil/.env << 'EOF'
RPC_URL=https://base-mainnet.g.alchemy.com/v2/YOUR_KEY
EOF
chmod 600 ~/.clawdbot/skills/veil/.env将添加到以下任一文件中:
RPC_URL=...- (优先选择)
~/.clawdbot/skills/veil/.env - 或SDK仓库中的文件(不太推荐)
.env
示例:
bash
mkdir -p ~/.clawdbot/skills/veil
cat > ~/.clawdbot/skills/veil/.env << 'EOF'
RPC_URL=https://base-mainnet.g.alchemy.com/v2/YOUR_KEY
EOF
chmod 600 ~/.clawdbot/skills/veil/.env3) Make scripts executable
3) 赋予脚本执行权限
bash
chmod +x scripts/*.shbash
chmod +x scripts/*.sh4) Generate your Veil keypair
4) 生成Veil密钥对
bash
scripts/veil-init.sh
scripts/veil-keypair.shbash
scripts/veil-init.sh
scripts/veil-keypair.sh5) Check your setup
5) 检查设置状态
bash
scripts/veil-status.shbash
scripts/veil-status.sh6) Find your Bankr Base address
6) 查询你的Bankr Base地址
bash
scripts/veil-bankr-prompt.sh "What is my Base wallet address? Respond with just the address."bash
scripts/veil-bankr-prompt.sh "What is my Base wallet address? Respond with just the address."7) Check balances
7) 查看余额
bash
scripts/veil-balance.sh --address 0xYOUR_BANKR_ADDRESSbash
scripts/veil-balance.sh --address 0xYOUR_BANKR_ADDRESS8) Deposit via Bankr (sign & submit)
8) 通过Bankr存款(签名并提交)
bash
scripts/veil-deposit-via-bankr.sh 0.011 --address 0xYOUR_BANKR_ADDRESSbash
scripts/veil-deposit-via-bankr.sh 0.011 --address 0xYOUR_BANKR_ADDRESS9) Withdraw (private → public)
9) 提款(私密→公开)
bash
scripts/veil-withdraw.sh 0.007 0xYOUR_BANKR_ADDRESSbash
scripts/veil-withdraw.sh 0.007 0xYOUR_BANKR_ADDRESSReferences
参考资料
- SDK Reference — CLI commands, environment variables, error codes
- Troubleshooting — Common issues and debugging tips
- SDK参考文档 — CLI命令、环境变量、错误码
- 故障排查 — 常见问题及调试技巧
Notes
注意事项
- For Bankr signing, this skill uses Bankr’s Agent API via your local .
~/.clawdbot/skills/bankr/config.json - For privacy safety: never commit or
.env.veilfiles to git..env
- 关于Bankr签名:本Skill通过本地配置文件调用Bankr的Agent API。
~/.clawdbot/skills/bankr/config.json - 隐私安全提示:切勿将或
.env.veil文件提交至git仓库。.env