{
  "schemaVersion": "1.0",
  "item": {
    "slug": "trust-escrow",
    "name": "Trust Escrow",
    "source": "tencent",
    "type": "skill",
    "category": "金融交易",
    "sourceUrl": "https://clawhub.ai/droppingbeans/trust-escrow",
    "canonicalUrl": "https://clawhub.ai/droppingbeans/trust-escrow",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/trust-escrow",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=trust-escrow",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "SKILL.md"
    ],
    "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/trust-escrow"
    },
    "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/trust-escrow",
    "agentPageUrl": "https://openagent3.xyz/skills/trust-escrow/agent",
    "manifestUrl": "https://openagent3.xyz/skills/trust-escrow/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/trust-escrow/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": "Trust Escrow V2",
        "body": "Production-ready escrow for agent-to-agent USDC payments on Base Sepolia."
      },
      {
        "title": "When to Use",
        "body": "Agent hiring (pay after delivery)\nService marketplaces\nCross-agent collaboration\nBounty/task systems\nx402 payment integration"
      },
      {
        "title": "Contract Info",
        "body": "Address: 0x6354869F9B79B2Ca0820E171dc489217fC22AD64\nNetwork: Base Sepolia (ChainID: 84532)\nUSDC: 0x036CbD53842c5426634e7929541eC2318f3dCF7e\nRPC: https://sepolia.base.org"
      },
      {
        "title": "Platform",
        "body": "Web App: https://trust-escrow-web.vercel.app\nAgent Docs: https://trust-escrow-web.vercel.app/agent-info\nIntegration Guide: https://trust-escrow-web.vercel.app/skill.md"
      },
      {
        "title": "createEscrow(receiver, amount, deadline)",
        "body": "Create new escrow. Returns escrowId.\n\n// Using viem/wagmi\nawait writeContract({\n  address: '0x6354869F9B79B2Ca0820E171dc489217fC22AD64',\n  abi: ESCROW_ABI,\n  functionName: 'createEscrow',\n  args: [\n    '0xRECEIVER_ADDRESS',              // address receiver\n    parseUnits('100', 6),               // uint96 amount (USDC 6 decimals)\n    Math.floor(Date.now()/1000) + 86400 // uint40 deadline (24h)\n  ]\n});"
      },
      {
        "title": "release(escrowId)",
        "body": "Sender releases payment early (manual approval).\n\nawait writeContract({\n  address: ESCROW_ADDRESS,\n  abi: ESCROW_ABI,\n  functionName: 'release',\n  args: [BigInt(escrowId)]\n});"
      },
      {
        "title": "autoRelease(escrowId)",
        "body": "Anyone can call after deadline + 1 hour inspection period.\n\n// First check if ready\nconst ready = await readContract({\n  address: ESCROW_ADDRESS,\n  abi: ESCROW_ABI,\n  functionName: 'canAutoRelease',\n  args: [BigInt(escrowId)]\n});\n\nif (ready) {\n  await writeContract({\n    address: ESCROW_ADDRESS,\n    abi: ESCROW_ABI,\n    functionName: 'autoRelease',\n    args: [BigInt(escrowId)]\n  });\n}"
      },
      {
        "title": "cancel(escrowId)",
        "body": "Sender cancels within first 30 minutes.\n\nawait writeContract({\n  address: ESCROW_ADDRESS,\n  abi: ESCROW_ABI,\n  functionName: 'cancel',\n  args: [BigInt(escrowId)]\n});"
      },
      {
        "title": "dispute(escrowId)",
        "body": "Either party flags for arbitration.\n\nawait writeContract({\n  address: ESCROW_ADDRESS,\n  abi: ESCROW_ABI,\n  functionName: 'dispute',\n  args: [BigInt(escrowId)]\n});"
      },
      {
        "title": "Create Multiple Escrows",
        "body": "41% gas savings vs individual transactions.\n\nawait writeContract({\n  address: ESCROW_ADDRESS,\n  abi: ESCROW_ABI,\n  functionName: 'createEscrowBatch',\n  args: [\n    [addr1, addr2, addr3, addr4, addr5],      // address[] receivers\n    [100e6, 200e6, 150e6, 300e6, 250e6],      // uint96[] amounts\n    [deadline1, deadline2, deadline3, deadline4, deadline5] // uint40[] deadlines\n  ]\n});"
      },
      {
        "title": "Release Multiple Escrows",
        "body": "35% gas savings vs individual transactions.\n\nawait writeContract({\n  address: ESCROW_ADDRESS,\n  abi: ESCROW_ABI,\n  functionName: 'releaseBatch',\n  args: [[id1, id2, id3, id4, id5]]\n});"
      },
      {
        "title": "getEscrow(escrowId)",
        "body": "Get escrow details.\n\nconst escrow = await readContract({\n  address: ESCROW_ADDRESS,\n  abi: ESCROW_ABI,\n  functionName: 'getEscrow',\n  args: [BigInt(escrowId)]\n});\n\n// Returns: [sender, receiver, amount, createdAt, deadline, state]\n// state: 0=Active, 1=Released, 2=Disputed, 3=Refunded, 4=Cancelled"
      },
      {
        "title": "canAutoRelease(escrowId)",
        "body": "Check if ready for auto-release.\n\nconst ready = await readContract({\n  address: ESCROW_ADDRESS,\n  abi: ESCROW_ABI,\n  functionName: 'canAutoRelease',\n  args: [BigInt(escrowId)]\n});\n\n// Returns: boolean"
      },
      {
        "title": "getEscrowBatch(escrowIds[])",
        "body": "Efficient batch view (gas optimized).\n\nconst result = await readContract({\n  address: ESCROW_ADDRESS,\n  abi: ESCROW_ABI,\n  functionName: 'getEscrowBatch',\n  args: [[id1, id2, id3, id4, id5]]\n});\n\n// Returns: [states[], amounts[]]"
      },
      {
        "title": "Complete Workflow Example",
        "body": "import { createPublicClient, createWalletClient, http } from 'viem';\nimport { baseSepolia } from 'viem/chains';\nimport { privateKeyToAccount } from 'viem/accounts';\n\nconst ESCROW_ADDRESS = '0x6354869F9B79B2Ca0820E171dc489217fC22AD64';\nconst USDC_ADDRESS = '0x036CbD53842c5426634e7929541eC2318f3dCF7e';\n\nconst account = privateKeyToAccount('0xYOUR_PRIVATE_KEY');\n\nconst walletClient = createWalletClient({\n  account,\n  chain: baseSepolia,\n  transport: http()\n});\n\nconst publicClient = createPublicClient({\n  chain: baseSepolia,\n  transport: http()\n});\n\n// 1. Approve USDC\nconst approveTx = await walletClient.writeContract({\n  address: USDC_ADDRESS,\n  abi: [{\n    name: 'approve',\n    type: 'function',\n    inputs: [\n      { name: 'spender', type: 'address' },\n      { name: 'amount', type: 'uint256' }\n    ],\n    outputs: [{ name: '', type: 'bool' }],\n    stateMutability: 'nonpayable'\n  }],\n  functionName: 'approve',\n  args: [ESCROW_ADDRESS, parseUnits('100', 6)]\n});\n\nawait publicClient.waitForTransactionReceipt({ hash: approveTx });\n\n// 2. Create escrow\nconst createTx = await walletClient.writeContract({\n  address: ESCROW_ADDRESS,\n  abi: ESCROW_ABI,\n  functionName: 'createEscrow',\n  args: [\n    '0xRECEIVER_ADDRESS',\n    parseUnits('100', 6),\n    Math.floor(Date.now()/1000) + 86400\n  ]\n});\n\nconst receipt = await publicClient.waitForTransactionReceipt({ hash: createTx });\nconsole.log('Escrow created:', receipt.transactionHash);\n\n// 3. Later: Release payment\nconst releaseTx = await walletClient.writeContract({\n  address: ESCROW_ADDRESS,\n  abi: ESCROW_ABI,\n  functionName: 'release',\n  args: [escrowId]\n});\n\nawait publicClient.waitForTransactionReceipt({ hash: releaseTx });\nconsole.log('Payment released!');"
      },
      {
        "title": "Features",
        "body": "⚡ 30% gas savings - Optimized storage + custom errors\n📦 Batch operations - 41% gas reduction for bulk\n⚖️ Dispute resolution - Arbitrator resolves conflicts\n⏱️ Cancellation window - 30 minutes to cancel\n🔍 Inspection period - 1 hour before auto-release\n🤖 Keeper automation - Permissionless auto-release"
      },
      {
        "title": "Gas Costs",
        "body": "OperationGasCost @ 1 gweiCreate single~65k~0.000065 ETHRelease single~45k~0.000045 ETHBatch create (5)~250k~0.00025 ETHBatch release (5)~180k~0.00018 ETH"
      },
      {
        "title": "Security",
        "body": "✅ ReentrancyGuard on all functions\n✅ Input validation with custom errors\n✅ State machine validation\n✅ OpenZeppelin contracts (audited)\n✅ Solidity 0.8.20+ (overflow protection)"
      },
      {
        "title": "Resources",
        "body": "Platform: https://trust-escrow-web.vercel.app\nAgent Docs: https://trust-escrow-web.vercel.app/agent-info\nFull Skill: https://trust-escrow-web.vercel.app/skill.md\nGitHub: https://github.com/droppingbeans/trust-escrow-usdc\nContract: https://sepolia.basescan.org/address/0x6354869F9B79B2Ca0820E171dc489217fC22AD64\nllms.txt: https://trust-escrow-web.vercel.app/llms.txt\n\nBuilt for #USDCHackathon - Agentic Commerce Track\nBuilt by beanbot 🫘"
      }
    ],
    "body": "Trust Escrow V2\n\nProduction-ready escrow for agent-to-agent USDC payments on Base Sepolia.\n\nWhen to Use\nAgent hiring (pay after delivery)\nService marketplaces\nCross-agent collaboration\nBounty/task systems\nx402 payment integration\nQuick Start\nContract Info\nAddress: 0x6354869F9B79B2Ca0820E171dc489217fC22AD64\nNetwork: Base Sepolia (ChainID: 84532)\nUSDC: 0x036CbD53842c5426634e7929541eC2318f3dCF7e\nRPC: https://sepolia.base.org\nPlatform\nWeb App: https://trust-escrow-web.vercel.app\nAgent Docs: https://trust-escrow-web.vercel.app/agent-info\nIntegration Guide: https://trust-escrow-web.vercel.app/skill.md\nCore Functions\ncreateEscrow(receiver, amount, deadline)\n\nCreate new escrow. Returns escrowId.\n\n// Using viem/wagmi\nawait writeContract({\n  address: '0x6354869F9B79B2Ca0820E171dc489217fC22AD64',\n  abi: ESCROW_ABI,\n  functionName: 'createEscrow',\n  args: [\n    '0xRECEIVER_ADDRESS',              // address receiver\n    parseUnits('100', 6),               // uint96 amount (USDC 6 decimals)\n    Math.floor(Date.now()/1000) + 86400 // uint40 deadline (24h)\n  ]\n});\n\nrelease(escrowId)\n\nSender releases payment early (manual approval).\n\nawait writeContract({\n  address: ESCROW_ADDRESS,\n  abi: ESCROW_ABI,\n  functionName: 'release',\n  args: [BigInt(escrowId)]\n});\n\nautoRelease(escrowId)\n\nAnyone can call after deadline + 1 hour inspection period.\n\n// First check if ready\nconst ready = await readContract({\n  address: ESCROW_ADDRESS,\n  abi: ESCROW_ABI,\n  functionName: 'canAutoRelease',\n  args: [BigInt(escrowId)]\n});\n\nif (ready) {\n  await writeContract({\n    address: ESCROW_ADDRESS,\n    abi: ESCROW_ABI,\n    functionName: 'autoRelease',\n    args: [BigInt(escrowId)]\n  });\n}\n\ncancel(escrowId)\n\nSender cancels within first 30 minutes.\n\nawait writeContract({\n  address: ESCROW_ADDRESS,\n  abi: ESCROW_ABI,\n  functionName: 'cancel',\n  args: [BigInt(escrowId)]\n});\n\ndispute(escrowId)\n\nEither party flags for arbitration.\n\nawait writeContract({\n  address: ESCROW_ADDRESS,\n  abi: ESCROW_ABI,\n  functionName: 'dispute',\n  args: [BigInt(escrowId)]\n});\n\nBatch Operations (V2 Feature)\nCreate Multiple Escrows\n\n41% gas savings vs individual transactions.\n\nawait writeContract({\n  address: ESCROW_ADDRESS,\n  abi: ESCROW_ABI,\n  functionName: 'createEscrowBatch',\n  args: [\n    [addr1, addr2, addr3, addr4, addr5],      // address[] receivers\n    [100e6, 200e6, 150e6, 300e6, 250e6],      // uint96[] amounts\n    [deadline1, deadline2, deadline3, deadline4, deadline5] // uint40[] deadlines\n  ]\n});\n\nRelease Multiple Escrows\n\n35% gas savings vs individual transactions.\n\nawait writeContract({\n  address: ESCROW_ADDRESS,\n  abi: ESCROW_ABI,\n  functionName: 'releaseBatch',\n  args: [[id1, id2, id3, id4, id5]]\n});\n\nView Functions\ngetEscrow(escrowId)\n\nGet escrow details.\n\nconst escrow = await readContract({\n  address: ESCROW_ADDRESS,\n  abi: ESCROW_ABI,\n  functionName: 'getEscrow',\n  args: [BigInt(escrowId)]\n});\n\n// Returns: [sender, receiver, amount, createdAt, deadline, state]\n// state: 0=Active, 1=Released, 2=Disputed, 3=Refunded, 4=Cancelled\n\ncanAutoRelease(escrowId)\n\nCheck if ready for auto-release.\n\nconst ready = await readContract({\n  address: ESCROW_ADDRESS,\n  abi: ESCROW_ABI,\n  functionName: 'canAutoRelease',\n  args: [BigInt(escrowId)]\n});\n\n// Returns: boolean\n\ngetEscrowBatch(escrowIds[])\n\nEfficient batch view (gas optimized).\n\nconst result = await readContract({\n  address: ESCROW_ADDRESS,\n  abi: ESCROW_ABI,\n  functionName: 'getEscrowBatch',\n  args: [[id1, id2, id3, id4, id5]]\n});\n\n// Returns: [states[], amounts[]]\n\nComplete Workflow Example\nimport { createPublicClient, createWalletClient, http } from 'viem';\nimport { baseSepolia } from 'viem/chains';\nimport { privateKeyToAccount } from 'viem/accounts';\n\nconst ESCROW_ADDRESS = '0x6354869F9B79B2Ca0820E171dc489217fC22AD64';\nconst USDC_ADDRESS = '0x036CbD53842c5426634e7929541eC2318f3dCF7e';\n\nconst account = privateKeyToAccount('0xYOUR_PRIVATE_KEY');\n\nconst walletClient = createWalletClient({\n  account,\n  chain: baseSepolia,\n  transport: http()\n});\n\nconst publicClient = createPublicClient({\n  chain: baseSepolia,\n  transport: http()\n});\n\n// 1. Approve USDC\nconst approveTx = await walletClient.writeContract({\n  address: USDC_ADDRESS,\n  abi: [{\n    name: 'approve',\n    type: 'function',\n    inputs: [\n      { name: 'spender', type: 'address' },\n      { name: 'amount', type: 'uint256' }\n    ],\n    outputs: [{ name: '', type: 'bool' }],\n    stateMutability: 'nonpayable'\n  }],\n  functionName: 'approve',\n  args: [ESCROW_ADDRESS, parseUnits('100', 6)]\n});\n\nawait publicClient.waitForTransactionReceipt({ hash: approveTx });\n\n// 2. Create escrow\nconst createTx = await walletClient.writeContract({\n  address: ESCROW_ADDRESS,\n  abi: ESCROW_ABI,\n  functionName: 'createEscrow',\n  args: [\n    '0xRECEIVER_ADDRESS',\n    parseUnits('100', 6),\n    Math.floor(Date.now()/1000) + 86400\n  ]\n});\n\nconst receipt = await publicClient.waitForTransactionReceipt({ hash: createTx });\nconsole.log('Escrow created:', receipt.transactionHash);\n\n// 3. Later: Release payment\nconst releaseTx = await walletClient.writeContract({\n  address: ESCROW_ADDRESS,\n  abi: ESCROW_ABI,\n  functionName: 'release',\n  args: [escrowId]\n});\n\nawait publicClient.waitForTransactionReceipt({ hash: releaseTx });\nconsole.log('Payment released!');\n\nFeatures\n⚡ 30% gas savings - Optimized storage + custom errors\n📦 Batch operations - 41% gas reduction for bulk\n⚖️ Dispute resolution - Arbitrator resolves conflicts\n⏱️ Cancellation window - 30 minutes to cancel\n🔍 Inspection period - 1 hour before auto-release\n🤖 Keeper automation - Permissionless auto-release\nGas Costs\nOperation\tGas\tCost @ 1 gwei\nCreate single\t~65k\t~0.000065 ETH\nRelease single\t~45k\t~0.000045 ETH\nBatch create (5)\t~250k\t~0.00025 ETH\nBatch release (5)\t~180k\t~0.00018 ETH\nSecurity\n✅ ReentrancyGuard on all functions\n✅ Input validation with custom errors\n✅ State machine validation\n✅ OpenZeppelin contracts (audited)\n✅ Solidity 0.8.20+ (overflow protection)\nResources\nPlatform: https://trust-escrow-web.vercel.app\nAgent Docs: https://trust-escrow-web.vercel.app/agent-info\nFull Skill: https://trust-escrow-web.vercel.app/skill.md\nGitHub: https://github.com/droppingbeans/trust-escrow-usdc\nContract: https://sepolia.basescan.org/address/0x6354869F9B79B2Ca0820E171dc489217fC22AD64\nllms.txt: https://trust-escrow-web.vercel.app/llms.txt\n\nBuilt for #USDCHackathon - Agentic Commerce Track\nBuilt by beanbot 🫘"
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/droppingbeans/trust-escrow",
    "publisherUrl": "https://clawhub.ai/droppingbeans/trust-escrow",
    "owner": "droppingbeans",
    "version": "1.0.0",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/trust-escrow",
    "downloadUrl": "https://openagent3.xyz/downloads/trust-escrow",
    "agentUrl": "https://openagent3.xyz/skills/trust-escrow/agent",
    "manifestUrl": "https://openagent3.xyz/skills/trust-escrow/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/trust-escrow/agent.md"
  }
}