Overview
- Skill Key
- contact-nbwfoundation/btcd-skill-beta
- Author
- contact-nbwfoundation
- Source Repo
- openclaw/skills
- Version
- -
- Source Path
- skills/contact-nbwfoundation/btcd-skill-beta
- Latest Commit SHA
- 89b70d906a4e2cd2de2d7c8f1ef4ce687b680887
Run the BTCD collateralization flow on PGP chain. Use when the user asks to run a BTCD loan, collateralization flow, create/take orders, lock BTC, submit proofs, claim BTCD tokens, or repay loans on the PGP network.
Stars
0
Installs
0
Status
ACTIVE
Visibility
PUBLIC
直接复制以下提示词,发送给你的 AI 助手即可完成安装。
请先检查是否已安装 SkillHub 商店,若未安装,请根据 https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/skillhub.md 安装 SkillHub 商店,然后安装 btcd-skill-beta 技能。 若已安装,则直接安装 btcd-skill-beta 技能。
# BTCD PGP Collateralization Flow This skill contains a **complete, self-contained** Node.js project to run the full BTCD collateralization lifecycle on the PGP (Elastos) chain. ## Bundled Code Location All runnable code is inside the `scripts/` directory relative to this SKILL.md: ``` scripts/ ├── package.json ├── .env.template.txt ├── setup.js ├── 00-create-order.js ├── 01-take-order.js ├── 02-lock-btc-collateral.js ├── 03-submit-btc-proof.js ├── 05-claim-btcd-tokens.js ├── 06-repay-loan.js ├── abi/ # Contract ABIs (LoanContract, Order, Issuer, ERC20, ArbitratorManager) ├── utils/ # Shared utilities (config, wallet, EVM/BTC clients, logger, state, proof, arbiter) └── state/ # Flow state persists here ``` ## Setup Instructions 1. **Copy the entire `scripts/` directory** to a working directory: ```bash cp -r <path-to-this-skill>/scripts/ /tmp/btcd-flow/ cd /tmp/btcd-flow/ ``` 2. **Create `.env`** from the template. Only two values need changing: ```bash cp .env.template.txt .env ``` Edit `.env` and set: - `EVM_PRIVATE_KEY` — your EVM private key (with `0x` prefix) - `BTC_PRIVATE_KEY` — your BTC private key (hex, **no** `0x` prefix) Optionally adjust `LENDING_AMOUNT` (minimum 10) and `LENDING_DAYS` (only 90 or 180). All other values (contract addresses, RPC URLs, subgraph URLs) are **fixed for PGP chain** and must not be changed. 3. **Install dependencies:** ```bash npm install ``` 4. **Ensure wallets are funded:** - **BTC wallet**: Must have enough mainnet BTC for collateral + miner fees. - **EVM wallet**: Must have PGA tokens for gas fees on PGP chain. To get PGA tokens, go to **https://swap.pgpgas.org** — you need USDT on BSC chain, bridge it to PGP, then swap for PGA tokens and/or BTCD. ## CRITICAL: Check State Before Running **Before running any step**, always read `state/flow-state.json` to u...
capt-marbles
Task Router
capncoconut
Register, communicate, and earn on the x402hub AI agent marketplace. Use when an agent needs to register on x402hub, browse or claim bounties, submit deliverables, send messages to other agents via x402 Relay, check marketplace stats, or manage agent credentials. Triggers on x402hub, agent marketplace, bounty, relay messaging, agent-to-agent communication, or USDC earning.
capevace
Real-time event bus for AI agents. Publish, subscribe, and share live signals across a network of agents with Unix-style simplicity.
captchasco
OpenClaw integration guidance for CAPTCHAS Agent API, including OpenResponses tool schemas and plugin tool registration.
carol-gutianle
name: modelready description: Start using a local or Hugging Face model instantly, directly from chat. metadata: {"openclaw":{"requires":{"bins": "bash", "curl" }, "env": "URL" }}
canbirlik
Controls Wiz smart bulbs (turn on/off, RGB colors, disco mode) via local WiFi.