← 返回 Skills 市场
hades-ye

x402-payment-tron

作者 open-aibank · GitHub ↗ · v0.0.4
cross-platform ⚠ suspicious
3519
总下载
2
收藏
1
当前安装
4
版本数
在 OpenClaw 中安装
/install x402-payment-tron
功能描述
Pay for x402-enabled Agent endpoints using USDT on TRON
安全使用建议
This skill appears to do what it says (make USDT-on-TRON payments), but there are several concerning inconsistencies you should address before installing: - The package actually needs a TRON private key, but the registry metadata does not list any required env vars. Assume you must provide TRON_PRIVATE_KEY and verify that in your environment settings. - The bundled code will silently search local files for keys (x402-config.json, ~/.x402-config.json, and ~/.mcporter/mcporter.json) and may extract TRON_PRIVATE_KEY from them. If you have sensitive configs in those locations, consider moving them or using a dedicated wallet for this skill. Prefer setting TRON_PRIVATE_KEY explicitly in a secure environment variable rather than relying on file discovery. - The tool performs an "infinite approval" (MAX_UINT256) for USDT allowance if needed. That reduces friction but is high risk: if the contract or underlying keys are compromised, funds could be drained. Only use with wallets that hold limited funds and consider manually approving only needed amounts. - There is an internal contradiction: the SKILL.md tells the agent not to search for keys, but the tool itself does. Treat the tool as the authoritative behavior and review the code yourself or request the author to remove silent file scanning. - If you decide to proceed, audit the included dist bundle or run the skill in an isolated environment (sandbox or throwaway VM), use a low-value wallet, and monitor/revoke token approvals (revoke infinite approval) after use. If you need higher confidence, ask the publisher to (1) update registry metadata to declare TRON_PRIVATE_KEY, (2) remove silent scanning of home config files or make it opt-in, and (3) offer an explicit UX/confirmation before broadcasting infinite approvals.
功能分析
Type: OpenClaw Skill Name: x402-payment-tron Version: 0.0.4 The skill is designed for cryptocurrency payments on TRON, which inherently involves high financial risk. The most significant indicator is the explicit documentation in `SKILL.md` and the underlying implementation in `src/index.ts` (via `@open-aibank/x402-tron`) of an 'infinite approval' (MAX_UINT256) for USDT tokens if allowance is insufficient. While this is a stated feature to minimize future transactions, it grants unlimited spending power to a smart contract, posing a substantial financial risk to the user. The skill also accesses private keys from environment variables and specific configuration files (`~/.mcporter/mcporter.json`, `x402-config.json`, `~/.x402-config.json`) for its operation, which is necessary for its function but represents a sensitive capability. However, `SKILL.md` and `src/index.ts` include strong anti-prompt-injection measures, explicitly instructing the agent not to output, search for, or leak private keys, and sanitizing error messages, which mitigates some risks.
能力评估
Purpose & Capability
Name/description (x402 payments on TRON) align with code and dependencies (tronweb, @open-aibank/x402-tron). However registry metadata lists no required env vars while SKILL.md and the code do expect TRON_PRIVATE_KEY — a mismatch between declared requirements and actual needs.
Instruction Scope
SKILL.md and the bundled code instruct the tool to locate and load a private key from multiple places: TRON_PRIVATE_KEY env var, x402-config.json and ~/.x402-config.json, and ~/.mcporter/mcporter.json (it will search inside mcpServers entries). The SKILL.md also contains an 'Agent Note' telling agents not to search for keys, which contradicts the tool's own behavior. The tool also performs an 'infinite approval' (MAX_UINT256) for USDT allowance — expected for a payments tool but high-risk behavior that should be explicitly consented to by users.
Install Mechanism
No external download/install spec is provided; the skill is instruction-only but includes source and a prebuilt dist bundle. Dependencies are standard npm modules (tronweb and an x402 client). No suspicious remote download URLs or extract steps were found in the manifest.
Credentials
Requesting a TRON private key is proportionate for a payments skill, but the skill quietly reads additional local configuration files (including ~/.mcporter/mcporter.json) and will look across server entries for TRON_PRIVATE_KEY — this broad file access is more intrusive than declaring a single env var. Registry metadata failing to declare the primary credential increases the risk of accidental exposure.
Persistence & Privilege
The skill does not request always:true, does not modify other skills, and does not persist beyond its own runtime. It writes temporary files for binary/image responses to the system temp directory and asks the agent to delete them — a standard pattern but worth cleaning up after use.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install x402-payment-tron
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /x402-payment-tron 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v0.0.4
No changes detected in this version. - Version 0.0.4 has no updates compared to the previous release.
v0.0.3
x402-payment-tron v0.0.3 - Added support for endpoints that return images or binary data: Content is saved to a temporary file with base64 and file metadata provided in the response. - Updated documentation to include new section on binary and image handling. - No functional changes: initial feature set and tool usage are unchanged apart from binary/image response handling instructions.
v0.0.2
Initial release of x402-payment-tron. - Enables automatic payment using USDT on TRON for x402-enabled AI agent endpoints. - Supports secure management of the TRON private key from environment or config files. - Includes the x402_tron_invoke tool for HTTP endpoint invocation with automated payment negotiation, infinite approval, and payment signature. - Provides agent discovery and endpoint pricing via agent manifests. - Adds comprehensive troubleshooting and strict security guidelines for private key handling. - Documents network references, including chain IDs, CAIP-2 identifiers, and USDT contract addresses for mainnet, nile, and shasta.
v0.0.1
x402-payment-tron 0.0.1 initial release: - Enables USDT-based micropayments on TRON for x402-enabled API endpoints. - Automatically negotiates payment, manages allowance, and signs EIP-712 payment permits. - Loads TRON private key from environment or common config files. - Includes usage guidance, agent security rules, troubleshooting, and TRON network details.
元数据
Slug x402-payment-tron
版本 0.0.4
许可证
累计安装 3
当前安装数 1
历史版本数 4
常见问题

x402-payment-tron 是什么?

Pay for x402-enabled Agent endpoints using USDT on TRON. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 3519 次。

如何安装 x402-payment-tron?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install x402-payment-tron」即可一键安装,无需额外配置。

x402-payment-tron 是免费的吗?

是的,x402-payment-tron 完全免费(开源免费),可自由下载、安装和使用。

x402-payment-tron 支持哪些平台?

x402-payment-tron 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 x402-payment-tron?

由 open-aibank(@hades-ye)开发并维护,当前版本 v0.0.4。

💬 留言讨论