{
  "schemaVersion": "1.0",
  "item": {
    "slug": "universal-trading",
    "name": "Universal Trading",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/0xMomo-NGClubs/universal-trading",
    "canonicalUrl": "https://clawhub.ai/0xMomo-NGClubs/universal-trading",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/universal-trading",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=universal-trading",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "SKILL.md",
      "agents/openai.yaml",
      "references/api.md",
      "references/env-setup.md",
      "references/examples.md",
      "scripts/bind-invitation.sh"
    ],
    "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-05-07T17:22:31.273Z",
      "expiresAt": "2026-05-14T17:22:31.273Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=afrexai-annual-report",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=afrexai-annual-report",
        "contentDisposition": "attachment; filename=\"afrexai-annual-report-1.0.0.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/universal-trading"
    },
    "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/universal-trading",
    "agentPageUrl": "https://openagent3.xyz/skills/universal-trading/agent",
    "manifestUrl": "https://openagent3.xyz/skills/universal-trading/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/universal-trading/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": "Universal Trading",
        "body": "Execute cross-chain trades with the official Particle Network universal-account-example project."
      },
      {
        "title": "First-Use Auto Initialization (Default)",
        "body": "When users install this skill and start using it for the first time, auto-run initialization by default.\n\nUse this decision flow:\n\nIf universal-account-example/.env already exists, treat environment as initialized and continue to trading tasks.\nIf not initialized, run from any directory:\n\nbash {baseDir}/scripts/init.sh new\n\nIf user explicitly wants to import an existing wallet, run:\n\nbash {baseDir}/scripts/init.sh import <YOUR_PRIVATE_KEY>\n\nAfter initialization, explicitly tell users:\n\nprivate key is stored at universal-account-example/.env under PRIVATE_KEY\nthey can use this wallet in the UniversalX frontend:\nhttps://universalx.app -> 创建钱包 -> 导入现有钱包\n\nBy default, setup auto-binds invite code 666666 after .env is created.\nIt also patches examples/buy-evm.ts to remove usePrimaryTokens restriction.\n\nOptional flags:\n\n# Use existing repo path\nbash {baseDir}/scripts/init.sh new --target /path/to/universal-account-example\n\n# Skip smoke test\nbash {baseDir}/scripts/init.sh new --skip-smoke\n\n# Disable invite auto-bind\nDISABLE_AUTO_INVITE_BIND=1 bash {baseDir}/scripts/init.sh new"
      },
      {
        "title": "Available Operations",
        "body": "Use scripts inside universal-account-example/examples:\n\nBuy token: buy-solana.ts, buy-evm.ts\nSell token: sell-solana.ts, sell-evm.ts\nConvert (swap): convert-solana.ts, convert-evm.ts, 7702-convert-evm.ts\nTransfer: transfer-solana.ts, transfer-evm.ts\nCustom transaction calls: custom-transaction-*\nBalance and history: get-primary-asset.ts, get-transactions.ts\nReal-time monitoring: transaction-status-wss.ts, user-assets-wss.ts\n\nFor buy operations that need explicit slippage control, use:\n\nscripts/buy-with-slippage.sh (fixed slippage or dynamic retry)"
      },
      {
        "title": "Trade Status Follow-Up (Required)",
        "body": "After any sendTransaction, do not stop at \"transaction submitted\".\nAlways return final outcome to user:\n\nCapture and show transactionId.\nPoll status until success or failure:\n\ncd /path/to/universal-account-example\nbash {baseDir}/scripts/check-transaction.sh <TRANSACTION_ID> --max-attempts 30 --interval-sec 2\n\nReply with one of:\n\nSUCCESS (confirmed)\nFAILED (failed on-chain/executor)\nPENDING (not finalized before timeout, include explorer link)"
      },
      {
        "title": "Trade Configuration",
        "body": "OptionDescriptionExampleslippageBpsSlippage tolerance (100 = 1%)100universalGasUse PARTI token for gastrueusePrimaryTokensRestrict source/fee primary tokens. Default: do not set (auto select).[SUPPORTED_TOKEN_TYPE.USDT, SUPPORTED_TOKEN_TYPE.USDC]solanaMEVTipAmountJito tip for MEV protection (SOL)0.01"
      },
      {
        "title": "Slippage Controls (Required for Volatile Tokens)",
        "body": "Allow users to choose one of these modes before buy:\n\nFixed slippage only:\n\ncd /path/to/universal-account-example\nbash {baseDir}/scripts/buy-with-slippage.sh \\\n  --chain bsc \\\n  --token-address 0x0000000000000000000000000000000000000000 \\\n  --amount-usd 5 \\\n  --slippage-bps 300\n\nDynamic slippage + auto retry:\n\ncd /path/to/universal-account-example\nbash {baseDir}/scripts/buy-with-slippage.sh \\\n  --chain bsc \\\n  --token-address 0x0000000000000000000000000000000000000000 \\\n  --amount-usd 5 \\\n  --slippage-bps 300 \\\n  --dynamic-slippage \\\n  --retry-slippages 300,500,800,1200\n\nSolana custom tip (anti-MEV) + retry tips:\n\ncd /path/to/universal-account-example\nbash {baseDir}/scripts/buy-with-slippage.sh \\\n  --chain solana \\\n  --token-address 6p6xgHyF7AeE6TZkSmFsko444wqoP15icUSqi2jfGiPN \\\n  --amount-usd 5 \\\n  --slippage-bps 300 \\\n  --dynamic-slippage \\\n  --retry-slippages 300,500,800,1200 \\\n  --solana-mev-tip-amount 0.001 \\\n  --retry-mev-tips 0.001,0.003,0.005\n\nReply with:\n\nchosen slippage mode and values\nchosen Solana tip settings (if Solana)\nfinal status (SUCCESS / FAILED / PENDING)\ntransactionId and explorer URL when available"
      },
      {
        "title": "Supported Chains",
        "body": "Solana: CHAIN_ID.SOLANA_MAINNET\nEVM: CHAIN_ID.POLYGON, CHAIN_ID.ARBITRUM, CHAIN_ID.OPTIMISM, CHAIN_ID.BSC, CHAIN_ID.ETHEREUM"
      },
      {
        "title": "Common Token Addresses",
        "body": "SOL (native): 0x0000000000000000000000000000000000000000\nUSDC (Solana): EPjFWdd5AufqSSFqM7BcEHw3BXmQ9Ce3pq27dUGL7C24\nUSDT (Solana): Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB"
      },
      {
        "title": "Safety Checklist",
        "body": "Validate chain, token address, and amount before creating transactions.\nUse small size for first live trade.\nWrap sendTransaction in try-catch and log transactionId.\nPrefer your own Particle credentials for production workloads."
      },
      {
        "title": "Reference Files",
        "body": "Environment Setup\nAPI Reference\nExamples"
      }
    ],
    "body": "Universal Trading\n\nExecute cross-chain trades with the official Particle Network universal-account-example project.\n\nFirst-Use Auto Initialization (Default)\n\nWhen users install this skill and start using it for the first time, auto-run initialization by default.\n\nUse this decision flow:\n\nIf universal-account-example/.env already exists, treat environment as initialized and continue to trading tasks.\nIf not initialized, run from any directory:\nbash {baseDir}/scripts/init.sh new\n\nIf user explicitly wants to import an existing wallet, run:\nbash {baseDir}/scripts/init.sh import <YOUR_PRIVATE_KEY>\n\n\nAfter initialization, explicitly tell users:\n\nprivate key is stored at universal-account-example/.env under PRIVATE_KEY\nthey can use this wallet in the UniversalX frontend: https://universalx.app -> 创建钱包 -> 导入现有钱包\n\nBy default, setup auto-binds invite code 666666 after .env is created. It also patches examples/buy-evm.ts to remove usePrimaryTokens restriction.\n\nOptional flags:\n\n# Use existing repo path\nbash {baseDir}/scripts/init.sh new --target /path/to/universal-account-example\n\n# Skip smoke test\nbash {baseDir}/scripts/init.sh new --skip-smoke\n\n# Disable invite auto-bind\nDISABLE_AUTO_INVITE_BIND=1 bash {baseDir}/scripts/init.sh new\n\nAvailable Operations\n\nUse scripts inside universal-account-example/examples:\n\nBuy token: buy-solana.ts, buy-evm.ts\nSell token: sell-solana.ts, sell-evm.ts\nConvert (swap): convert-solana.ts, convert-evm.ts, 7702-convert-evm.ts\nTransfer: transfer-solana.ts, transfer-evm.ts\nCustom transaction calls: custom-transaction-*\nBalance and history: get-primary-asset.ts, get-transactions.ts\nReal-time monitoring: transaction-status-wss.ts, user-assets-wss.ts\n\nFor buy operations that need explicit slippage control, use:\n\nscripts/buy-with-slippage.sh (fixed slippage or dynamic retry)\nTrade Status Follow-Up (Required)\n\nAfter any sendTransaction, do not stop at \"transaction submitted\". Always return final outcome to user:\n\nCapture and show transactionId.\nPoll status until success or failure:\ncd /path/to/universal-account-example\nbash {baseDir}/scripts/check-transaction.sh <TRANSACTION_ID> --max-attempts 30 --interval-sec 2\n\nReply with one of:\nSUCCESS (confirmed)\nFAILED (failed on-chain/executor)\nPENDING (not finalized before timeout, include explorer link)\nTrade Configuration\nOption\tDescription\tExample\nslippageBps\tSlippage tolerance (100 = 1%)\t100\nuniversalGas\tUse PARTI token for gas\ttrue\nusePrimaryTokens\tRestrict source/fee primary tokens. Default: do not set (auto select).\t[SUPPORTED_TOKEN_TYPE.USDT, SUPPORTED_TOKEN_TYPE.USDC]\nsolanaMEVTipAmount\tJito tip for MEV protection (SOL)\t0.01\nSlippage Controls (Required for Volatile Tokens)\n\nAllow users to choose one of these modes before buy:\n\nFixed slippage only:\ncd /path/to/universal-account-example\nbash {baseDir}/scripts/buy-with-slippage.sh \\\n  --chain bsc \\\n  --token-address 0x0000000000000000000000000000000000000000 \\\n  --amount-usd 5 \\\n  --slippage-bps 300\n\nDynamic slippage + auto retry:\ncd /path/to/universal-account-example\nbash {baseDir}/scripts/buy-with-slippage.sh \\\n  --chain bsc \\\n  --token-address 0x0000000000000000000000000000000000000000 \\\n  --amount-usd 5 \\\n  --slippage-bps 300 \\\n  --dynamic-slippage \\\n  --retry-slippages 300,500,800,1200\n\nSolana custom tip (anti-MEV) + retry tips:\ncd /path/to/universal-account-example\nbash {baseDir}/scripts/buy-with-slippage.sh \\\n  --chain solana \\\n  --token-address 6p6xgHyF7AeE6TZkSmFsko444wqoP15icUSqi2jfGiPN \\\n  --amount-usd 5 \\\n  --slippage-bps 300 \\\n  --dynamic-slippage \\\n  --retry-slippages 300,500,800,1200 \\\n  --solana-mev-tip-amount 0.001 \\\n  --retry-mev-tips 0.001,0.003,0.005\n\n\nReply with:\n\nchosen slippage mode and values\nchosen Solana tip settings (if Solana)\nfinal status (SUCCESS / FAILED / PENDING)\ntransactionId and explorer URL when available\nSupported Chains\nSolana: CHAIN_ID.SOLANA_MAINNET\nEVM: CHAIN_ID.POLYGON, CHAIN_ID.ARBITRUM, CHAIN_ID.OPTIMISM, CHAIN_ID.BSC, CHAIN_ID.ETHEREUM\nCommon Token Addresses\nSOL (native): 0x0000000000000000000000000000000000000000\nUSDC (Solana): EPjFWdd5AufqSSFqM7BcEHw3BXmQ9Ce3pq27dUGL7C24\nUSDT (Solana): Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB\nSafety Checklist\nValidate chain, token address, and amount before creating transactions.\nUse small size for first live trade.\nWrap sendTransaction in try-catch and log transactionId.\nPrefer your own Particle credentials for production workloads.\nReference Files\nEnvironment Setup\nAPI Reference\nExamples"
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/0xMomo-NGClubs/universal-trading",
    "publisherUrl": "https://clawhub.ai/0xMomo-NGClubs/universal-trading",
    "owner": "0xMomo-NGClubs",
    "version": "0.1.0",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/universal-trading",
    "downloadUrl": "https://openagent3.xyz/downloads/universal-trading",
    "agentUrl": "https://openagent3.xyz/skills/universal-trading/agent",
    "manifestUrl": "https://openagent3.xyz/skills/universal-trading/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/universal-trading/agent.md"
  }
}