{
  "schemaVersion": "1.0",
  "item": {
    "slug": "x402-payment-tron",
    "name": "x402-payment-tron",
    "source": "tencent",
    "type": "skill",
    "category": "金融交易",
    "sourceUrl": "https://clawhub.ai/Hades-Ye/x402-payment-tron",
    "canonicalUrl": "https://clawhub.ai/Hades-Ye/x402-payment-tron",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/x402-payment-tron",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=x402-payment-tron",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "SKILL.md",
      "package.json",
      "tsconfig.json",
      "src/index.ts",
      "dist/index.js",
      "dist/package.json"
    ],
    "primaryDoc": "SKILL.md",
    "quickSetup": [
      "Download the package from Yavira.",
      "Extract the archive and review SKILL.md first.",
      "Import or place the package into your OpenClaw setup."
    ],
    "agentAssist": {
      "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
      "steps": [
        "Download the package from Yavira.",
        "Extract it into a folder your agent can access.",
        "Paste one of the prompts below and point your agent at the extracted folder."
      ],
      "prompts": [
        {
          "label": "New install",
          "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete."
        },
        {
          "label": "Upgrade existing",
          "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run."
        }
      ]
    },
    "sourceHealth": {
      "source": "tencent",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-04-23T16:43:11.935Z",
      "expiresAt": "2026-04-30T16:43:11.935Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=4claw-imageboard",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=4claw-imageboard",
        "contentDisposition": "attachment; filename=\"4claw-imageboard-1.0.1.zip\"",
        "redirectLocation": null,
        "bodySnippet": null
      },
      "scope": "source",
      "summary": "Source download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this source.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/x402-payment-tron"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    },
    "downloadPageUrl": "https://openagent3.xyz/downloads/x402-payment-tron",
    "agentPageUrl": "https://openagent3.xyz/skills/x402-payment-tron/agent",
    "manifestUrl": "https://openagent3.xyz/skills/x402-payment-tron/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/x402-payment-tron/agent.md"
  },
  "agentAssist": {
    "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
    "steps": [
      "Download the package from Yavira.",
      "Extract it into a folder your agent can access.",
      "Paste one of the prompts below and point your agent at the extracted folder."
    ],
    "prompts": [
      {
        "label": "New install",
        "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete."
      },
      {
        "label": "Upgrade existing",
        "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run."
      }
    ]
  },
  "documentation": {
    "source": "clawhub",
    "primaryDoc": "SKILL.md",
    "sections": [
      {
        "title": "x402 Payment Protocol for TRON Agents",
        "body": "Invoke x402-enabled AI agent endpoints with automatic USDT micropayments on TRON."
      },
      {
        "title": "Option 1: Run Pre-built (Recommended for Agents)",
        "body": "The skill is pre-bundled into a single file. No installation required.\n\nnode dist/index.js --url <URL> [options]"
      },
      {
        "title": "Option 2: Development",
        "body": "npm install\nnpm start -- --url <URL>"
      },
      {
        "title": "Tool Reference",
        "body": "Wallet: A TRON private key must be available. The skill automatically looks for it in:\n\nTRON_PRIVATE_KEY environment variable.\n~/.mcporter/mcporter.json (AIBank standard configuration).\nx402-config.json in the current directory.\n~/.x402-config.json in the home directory.\n\n\nUSDT on TRON: Wallet needs USDT and some TRX for gas."
      },
      {
        "title": "x402_tron_invoke",
        "body": "Invokes an HTTP endpoint. If payment is required (402), it automatically:\n\nNegotiates payment requirements.\nChecks USDT allowance. If insufficient, it performs an infinite approval (MAX_UINT256) to minimize future transactions.\nSigns the payment permit (EIP-712).\nRetries the request with the payment signature.\n\nParameterTypeRequiredDescriptionurlstringYesFull URL to invokemethodstringNoHTTP method (GET, POST, etc.) Default: GETbodyobjectNoJSON body for the requestnetworkstringNomainnet, nile, shasta (Default: nile)"
      },
      {
        "title": "Example: Chat with Agent",
        "body": "url: https://api.example.com/chat\nmethod: POST\nbody: {\"prompt\": \"Tell me a joke\"}"
      },
      {
        "title": "Agent Discovery",
        "body": "You can discover available endpoints and their pricing by checking the agent's manifest."
      },
      {
        "title": "Fetch Agent Manifest",
        "body": "url: https://api.example.com/.well-known/agent.json\nmethod: GET"
      },
      {
        "title": "Security Rules for Agents",
        "body": "No Private Key Output: The Agent MUST NOT print, echo, or output the TRON_PRIVATE_KEY or any other signing secret to the dialogue context.\nInternal Loading Only: The Agent should rely on the skill or underlying scripts to load the key internally.\nNo Export Commands: The Agent MUST NOT execute shell commands that contain the private key as a literal string (e.g., export TRON_PRIVATE_KEY=...).\nSanitized Logs: Ensure that logs or error messages do not leak the key."
      },
      {
        "title": "\"Private key not found\"",
        "body": "Ensure the TRON_PRIVATE_KEY environment variable is set or a valid x402-config.json exists in the expected locations.\nAgent Note: If this error occurs, simply inform the user that the environment is not configured. DO NOT attempt to search for or read private keys from files yourself."
      },
      {
        "title": "\"Insufficient Allowance\"",
        "body": "The tool will attempt to broadcast an infinite approve transaction. This requires TRX for gas. Ensure your wallet has TRX."
      },
      {
        "title": "\"Transaction Failed\"",
        "body": "Check if you have enough USDT and TRX."
      },
      {
        "title": "Binary and Image Handling",
        "body": "If the endpoint returns an image (Content-Type: image/*) or binary data (application/octet-stream):\n\nThe data is automatically saved to a temporary file (e.g., /tmp/x402_image_... or /tmp/x402_binary_...).\nThe tool returns a JSON object with:\n\nfile_path: Path to the temporary file.\ncontent_type: The MIME type of the content.\nbytes: File size in bytes.\n\n\nImportant: The Agent is responsible for deleting the temporary file after it has been used or processed."
      },
      {
        "title": "Network Reference",
        "body": "NetworkChain IDCAIP-2USDT ContractTRON Mainnet0x2b6653dceip155:728126428, tron:mainnetTR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6tTRON Nile0xcd8690dceip155:3448148188, tron:nileTXYZopYRdj2D9XRtbG411XZZ3kM5VkAeBfTRON Shasta0x94a9059eeip155:2494104990, tron:shasta-"
      }
    ],
    "body": "x402 Payment Protocol for TRON Agents\n\nInvoke x402-enabled AI agent endpoints with automatic USDT micropayments on TRON.\n\nQuick Start\nOption 1: Run Pre-built (Recommended for Agents)\n\nThe skill is pre-bundled into a single file. No installation required.\n\nnode dist/index.js --url <URL> [options]\n\nOption 2: Development\nnpm install\nnpm start -- --url <URL>\n\nTool Reference\nWallet: A TRON private key must be available. The skill automatically looks for it in:\nTRON_PRIVATE_KEY environment variable.\n~/.mcporter/mcporter.json (AIBank standard configuration).\nx402-config.json in the current directory.\n~/.x402-config.json in the home directory.\nUSDT on TRON: Wallet needs USDT and some TRX for gas.\nTool Reference\nx402_tron_invoke\n\nInvokes an HTTP endpoint. If payment is required (402), it automatically:\n\nNegotiates payment requirements.\nChecks USDT allowance. If insufficient, it performs an infinite approval (MAX_UINT256) to minimize future transactions.\nSigns the payment permit (EIP-712).\nRetries the request with the payment signature.\nParameter\tType\tRequired\tDescription\nurl\tstring\tYes\tFull URL to invoke\nmethod\tstring\tNo\tHTTP method (GET, POST, etc.) Default: GET\nbody\tobject\tNo\tJSON body for the request\nnetwork\tstring\tNo\tmainnet, nile, shasta (Default: nile)\nExample: Chat with Agent\nurl: https://api.example.com/chat\nmethod: POST\nbody: {\"prompt\": \"Tell me a joke\"}\n\nAgent Discovery\n\nYou can discover available endpoints and their pricing by checking the agent's manifest.\n\nFetch Agent Manifest\nurl: https://api.example.com/.well-known/agent.json\nmethod: GET\n\nSecurity Rules for Agents\nNo Private Key Output: The Agent MUST NOT print, echo, or output the TRON_PRIVATE_KEY or any other signing secret to the dialogue context.\nInternal Loading Only: The Agent should rely on the skill or underlying scripts to load the key internally.\nNo Export Commands: The Agent MUST NOT execute shell commands that contain the private key as a literal string (e.g., export TRON_PRIVATE_KEY=...).\nSanitized Logs: Ensure that logs or error messages do not leak the key.\nTroubleshooting\n\"Private key not found\"\n\nEnsure the TRON_PRIVATE_KEY environment variable is set or a valid x402-config.json exists in the expected locations. Agent Note: If this error occurs, simply inform the user that the environment is not configured. DO NOT attempt to search for or read private keys from files yourself.\n\n\"Insufficient Allowance\"\n\nThe tool will attempt to broadcast an infinite approve transaction. This requires TRX for gas. Ensure your wallet has TRX.\n\n\"Transaction Failed\"\n\nCheck if you have enough USDT and TRX.\n\nBinary and Image Handling\n\nIf the endpoint returns an image (Content-Type: image/*) or binary data (application/octet-stream):\n\nThe data is automatically saved to a temporary file (e.g., /tmp/x402_image_... or /tmp/x402_binary_...).\nThe tool returns a JSON object with:\nfile_path: Path to the temporary file.\ncontent_type: The MIME type of the content.\nbytes: File size in bytes.\nImportant: The Agent is responsible for deleting the temporary file after it has been used or processed.\nNetwork Reference\nNetwork\tChain ID\tCAIP-2\tUSDT Contract\nTRON Mainnet\t0x2b6653dc\teip155:728126428, tron:mainnet\tTR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t\nTRON Nile\t0xcd8690dc\teip155:3448148188, tron:nile\tTXYZopYRdj2D9XRtbG411XZZ3kM5VkAeBf\nTRON Shasta\t0x94a9059e\teip155:2494104990, tron:shasta\t-"
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/Hades-Ye/x402-payment-tron",
    "publisherUrl": "https://clawhub.ai/Hades-Ye/x402-payment-tron",
    "owner": "Hades-Ye",
    "version": "0.0.4",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/x402-payment-tron",
    "downloadUrl": "https://openagent3.xyz/downloads/x402-payment-tron",
    "agentUrl": "https://openagent3.xyz/skills/x402-payment-tron/agent",
    "manifestUrl": "https://openagent3.xyz/skills/x402-payment-tron/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/x402-payment-tron/agent.md"
  }
}