返回顶部
p

paynode-402

Official PayNode CLI for stateless HTTP 402 micro-payments on Base L2.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 2.6.0
安全检测
已通过
124
下载量
0
收藏
概述
安装方式
版本历史

paynode-402

# 💳 PayNode 402 CLI Skill (v2.6.0) This skill provides autonomous payment capabilities for HTTP 402 (Payment Required) challenges on Base L2. ## 🛠️ Setup & Config (Mandatory) To ensure this skill can sign transactions even in non-interactive shells (like OpenClaw Gateway), it supports a dual-layer configuration priority: 1. **Priority B (Environment Variable)**: The CLI will first check for `CLIENT_PRIVATE_KEY` in your system environment. 2. **Priority A (XDG Config Fallback)**: If the env var is missing, it will automatically search for a JSON config at: `~/.config/paynode/config.json`. - **Format**: `{"CLIENT_PRIVATE_KEY": "0x..."}` **Recommendation**: Use **Priority B** for dynamic/containerized environments, and **Priority A** for persistent local development or cases where `.bashrc` is not sourced. ## 🛡️ Security Governance (Critical) To comply with **ClawHub Safety Standards**, the Agent MUST strictly follow these protocols: 1. **Burner Wallet ONLY**: Never use high-value primary keys. Advise users to use a dedicated burner address with minimal USDC/ETH for this skill. 2. **Mainnet YES-Confirmation**: Before calling `request` or `invoke-paid-api` on **Mainnet**, the Agent MUST explicitly prompt the user: "Allow payment of <PRICE> on Mainnet?". Proceed ONLY on "YES". 3. **Data Path Isolation**: The `data_binary` field returns a local filesystem path. Only read this path if generated during the current session's request. 4. **No Parameter Hallucination**: ALWAYS call `get-api-detail <ID>` to fetch the correct `input_schema` before execution. ## 🚀 Cold Start (Network Operations) The first action MUST be indexing the marketplace (**Outbound request**). Use this to understand current offerings: ```bash bunx @paynodelabs/paynode-402-cli list-paid-apis --network testnet --json --limit 5 ``` ## 📋 Command Reference | Command | Usage Example | Purpose | | :---------------- | :------------------------------- | :----------------------------- | | `check` | `check --network testnet --json` | Balance & Readiness check | | `get-api-detail` | `get-api-detail <ID> --json` | **REQUIRED** before invocation | | `invoke-paid-api` | `invoke-paid-api <ID> --json` | Market payment flow | | `tasks` | `tasks list` | Async progress monitor | | `mint` | `mint --amount 100 --json` | Get test tokens (Base Sepolia) | ### 🛠️ Global Flags - `--network <mainnet|testnet>`: Target (Default: testnet). - `--confirm-mainnet`: Required for real USDC. - `--json`: Required for agent parsing. --- ## 🔗 Resources - **GitHub**: [PayNodeLabs/paynode-402-cli](https://github.com/PayNodeLabs/paynode-402-cli) - **Faucet**: [Base Official Faucets](https://docs.base.org/docs/development/faucets) - **NPM**: [@paynodelabs/paynode-402-cli](https://www.npmjs.com/package/@paynodelabs/paynode-402-cli) - **Protocol**: [PayNode Specification](https://docs.paynode.dev)

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 paynode-402-1775976302 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 paynode-402-1775976302 技能

通过命令行安装

skillhub install paynode-402-1775976302

下载 Zip 包

⬇ 下载 paynode-402 v2.6.0

文件大小: 2.39 KB | 发布时间: 2026-4-13 11:25

v2.6.0 最新 2026-4-13 11:25
**Security governance requirements are now stricter; mainnet operations must always prompt for explicit YES confirmation and enforce burner wallet usage.**

- Security section updated: stricter language, "Critical" priority, and emphasis on burner wallet-only policy.
- YES-confirmation workflow for mainnet payments now explicitly mandatory.
- Only read local file paths created during the current request/session.
- Initial marketplace indexing on cold start is now described as a required outbound request.
- Minor clarifications and stronger enforcement language throughout documentation.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部