首页龙虾技能列表 › Pay For Service — 技能工具

Pay For Service — 技能工具

v0.1.0

Access paid API endpoints and content using the x402 payment protocol. Use when you or the user want to call a paid API, access gated content, make an x402 p...

0· 240·0 当前·0 累计
by @rachidjarray-hk-qa-fdt (Rachid Jarray)·MIT-0
下载技能包
License
MIT-0
最后更新
2026/4/12
安全扫描
VirusTotal
可疑
查看报告
OpenClaw
安全
medium confidence
The skill's instructions and requirements largely match its stated purpose (making x402 payments via a local Finance District wallet), with a minor inconsistency: it uses a local CLI ('fdx') but does not declare that binary as required.
评估建议
This skill appears to do what it says: run your local Finance District CLI (fdx) to detect x402 payment requirements and pay/fetch gated content. Before installing or using it: (1) ensure you have the fdx CLI installed and understand where your wallet keys/funds are stored (the skill will trigger wallet operations); (2) only use it against endpoints you trust and always confirm payments with a human—the SKILL.md itself advises confirmation for large or unfamiliar charges; (3) consider adding a d...
详细分析 ▾
用途与能力
The SKILL.md describes paying for x402-enabled endpoints using the Finance District wallet and shows concrete fdx CLI commands (getX402Content, authorizePayment, getWalletOverview). That aligns with the name/description. However, the registry metadata lists no required binaries even though the runtime instructions rely on the local 'fdx' CLI — this is an omission that reduces clarity about what the agent actually needs available.
指令范围
Instructions are narrowly scoped to checking wallet status, wallet balance, and calling fdx to discover payment requirements, authorize, and fetch content. They explicitly instruct confirming with the human before making payments and reference related skills (authenticate, fund-wallet, swap-tokens). The skill does not instruct reading unrelated files, environment variables, or exfiltrating data.
安装机制
This is an instruction-only skill with no install spec and no code files, so there is no install-time code being fetched or executed. That minimizes install-time risk.
凭证需求
The skill requests no environment variables or credentials in metadata. At runtime it will rely on the user's local Finance District wallet/authentication (accessed via the fdx CLI), which is appropriate for its purpose — but the missing declaration of the fdx binary and no explicit mention of the wallet's credential storage means users might not realize the agent will trigger wallet operations that use locally stored keys/funding.
持久化与权限
The skill does not request permanent presence (always:false) and allows model invocation (normal). It does not attempt to modify other skills or system-wide agent settings. Autonomous invocation is permitted (disable-model-invocation:false) which is standard for user-invocable skills.
安全有层次,运行前请审查代码。

License

MIT-0

可自由使用、修改和再分发,无需署名。

运行时依赖

无特殊依赖

版本

latestv0.1.02026/3/9

Initial release of pay-for-service-2 skill. - Enables access to paid API endpoints and gated content using the x402 payment protocol. - Supports one-step payment and content retrieval with getX402Content, and separate payment authorization with authorizePayment. - Allows payment from multi-chain, multi-asset Finance District wallet (not limited to Base/USDC). - Includes flows for authentication, balance checking, payment authorization, and error handling. - User instructions and command examples provided for fetching and paying for resources.

● 可疑

安装命令 点击复制

官方npx clawhub@latest install pay-for-service-2
镜像加速npx clawhub@latest install pay-for-service-2 --registry https://cn.clawhub-mirror.com

技能文档

Use the Finance District wallet to access paid API endpoints and gated content via the x402 HTTP payment protocol. The wallet handles payment authorization and signing automatically — the agent fetches the content in a single call.

How x402 Works

x402 is an HTTP-native payment protocol:

  • A server returns HTTP 402 with payment requirements
  • The wallet signs a payment and retries the request with a payment header
  • The facilitator verifies and settles the payment
  • The server returns the content

The Finance District wallet supports x402 payments on multiple chains and assets, not just a single network.

Confirm wallet is authenticated

fdx status

If the wallet is not authenticated, refer to the authenticate skill.

Check Balance

Ensure the wallet has sufficient funds to cover the payment:

fdx call getWalletOverview

Fetching Paid Content

getX402Content — Fetch content from a paid endpoint

The primary command for accessing x402 resources. It discovers payment requirements, authorizes payment, and retrieves the content in one step:

fdx call getX402Content --url 

Parameters

ParameterRequiredDescription
--urlYesThe x402-enabled endpoint URL
--preferredNetworkNoPreferred chain ID for payment (e.g. 8453 for Base)
--preferredNetworkNameNoPreferred chain name (e.g. base, ethereum)
--preferredAssetNoPreferred payment asset (e.g. USDC)
--maxPaymentAmountNoMaximum payment amount to authorize

authorizePayment — Pre-authorize a payment

For cases where you want to inspect payment requirements or authorize without fetching:

fdx call authorizePayment --url 

Parameters

Same as getX402Content.

Examples

# Fetch content from a paid API (auto-discovers requirements and pays)
fdx call getX402Content \
  --url https://api.example.com/premium/data

# Prefer paying with USDC on Base fdx call getX402Content \ --url https://api.example.com/premium/data \ --preferredNetworkName base \ --preferredAsset USDC

# Set a max payment cap fdx call getX402Content \ --url https://api.example.com/premium/data \ --maxPaymentAmount 1000000

# Just authorize without fetching fdx call authorizePayment \ --url https://api.example.com/premium/data

Flow

  • Check authentication with fdx status
  • Check wallet balance with fdx call getWalletOverview
  • Call fdx call getX402Content --url to fetch paid content
  • If the payment amount seems high, use fdx call authorizePayment first to inspect, then confirm with the human before proceeding
  • Return the fetched content to the human

Important: Always inform your human about the payment before executing, especially for unfamiliar endpoints or amounts that seem high. Let them confirm they want to proceed.

Difference from Coinbase x402

The Finance District wallet supports multi-chain and multi-asset x402 payments. You can specify a preferred network and asset, giving flexibility to pay from whichever chain and token has available balance. Coinbase's implementation is limited to Base USDC.

Prerequisites

  • Must be authenticated (fdx status to check, see authenticate skill)
  • Wallet must have sufficient balance in the required payment asset on the required network
  • If insufficient funds, suggest using the fund-wallet skill or swap-tokens skill

Error Handling

  • "Not authenticated" — Run fdx setup first, or see authenticate skill
  • "Insufficient balance" — Check balance; see fund-wallet skill
  • "No x402 payment requirements found" — The URL may not be an x402-enabled endpoint
  • "Payment failed" — May be a network issue; retry or try a different preferred network
数据来源:ClawHub ↗ · 中文优化:龙虾技能库
OpenClaw 技能定制 / 插件定制 / 私有工作流定制

免费技能或插件可能存在安全风险,如需更匹配、更安全的方案,建议联系付费定制

了解定制服务