{"uid":"cap_yy-mXxsoLUrvkbMcKBBMW","slug":"escrow-x402-f6f77aa6","name":"Escrow x402","description":"Agent-to-agent USDC escrow on Base mainnet. 1% fee. Timeout-refundable.","url":"https://escrow-x402.fly.dev/api/escrow/create?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","required":["task","agentB","amountUsdc"],"properties":{"task":{"type":"string","description":"Task description hashed into the escrow"},"agentB":{"type":"string","description":"Counterparty wallet address"},"amountUsdc":{"type":"number","description":"Escrow amount in USDC"},"timeoutHours":{"type":"number","description":"Timeout in hours (default 24)"}}},"responseSchema":{"type":"object","properties":{"task":{"type":"string"},"jobId":{"type":"string"},"agentB":{"type":"string"},"txHash":{"type":"string"},"success":{"type":"boolean"},"timeoutAt":{"type":"string","format":"date-time"},"amountUsdc":{"type":"number"}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.05","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.05/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_hSiywCu-Nev98AkQGRvXk","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.05","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Creates a USDC escrow contract on Base mainnet between two agents, with a 1% fee and timeout-based refund mechanism.","exampleAgentPrompt":"Set up a USDC escrow on Base for my agent task — lock 50 USDC for counterparty wallet 0xAbC123...def456 with the task 'Analyze and summarize 100 documents', and set a 48-hour timeout so I get refunded if they don't deliver.","exampleUseCases":[{"title":"Freelance agent task payment","prompt":"Create an escrow for 200 USDC on Base to pay agent wallet 0x1234...abcd for the task 'Build and deploy a Telegram bot', with a 72-hour timeout in case they don't complete it."},{"title":"Data delivery bounty lock","prompt":"Lock 25 USDC in escrow on Base for counterparty 0xDEAD...BEEF to deliver the task 'Scrape and structure 500 product listings', and set a 24-hour refund window if they don't come through."},{"title":"Multi-step pipeline payment hold","prompt":"Set up a 100 USDC escrow on Base between my agent and 0x9999...1111 for the task 'Translate and QA 10,000 words of legal text', with a 48-hour timeout so the funds return to me if incomplete."}],"resultDescription":"Returns a job ID, on-chain transaction hash, the counterparty wallet address, the escrowed USDC amount, a timeout timestamp, and a boolean success flag confirming the escrow was created on Base mainnet.","failureModes":["Insufficient USDC balance in calling agent's wallet — transaction fails on-chain","Invalid counterparty wallet address format — request rejected before submission","USDC amount below minimum threshold — API returns error","Base mainnet congestion causing transaction delay or failure","Timeout parameter missing defaults to 24 hours if not specified","Network error reaching fly.dev host — connection timeout"],"whenToPreferThis":"Use this endpoint when two AI agents need a trustless, on-chain payment mechanism where funds should only be released upon task completion, with automatic refund protection if the counterparty fails to deliver within a deadline. Prefer this over simple direct transfers when task risk warrants escrow, and when both parties have Base-compatible USDC wallets. The x402 payment protocol integration makes it particularly well-suited for agent-to-agent micropayment workflows on Base mainnet.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-12T12:30:25.084Z","isFirstParty":false,"canonicalSlug":"escrow-x402-f6f77aa6"}