{"uid":"cap_UDYQ3IT_6Ma8S3a-YmAJi","slug":"arcgate-swap-transaction-execute-c8a8bd51","name":"ArcGate Swap Transaction Execute","description":"Swap transactions","url":"https://api.arcgate.dev/trade/v1/swap?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"taker":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$"},"quoteId":{"type":"string","pattern":"^q_[0-9a-f]{16,}$"},"approval":{"enum":["permit2","approve"],"type":"string"},"recipient":{"anyOf":[{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$"},{"type":"null"}]},"deadlineSec":{"type":"integer","maximum":600,"minimum":10}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_hM9dXqZV5irh6ggagZTT-","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x3600000000000000000000000000000000000000","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Executes a token swap transaction on-chain using a pre-obtained quote ID, with configurable approval method and recipient","exampleAgentPrompt":"Execute the swap for quote q_a1b2c3d4e5f67890 from my wallet 0xAbCd...1234 using permit2 approval, send the output to 0xDeF0...5678, and complete within 120 seconds.","exampleUseCases":[{"title":"DeFi bot automated token rebalancing","prompt":"I need to rebalance my portfolio — execute the swap for quote q_ff112233aabb9900 from my wallet 0x1234567890abcdef1234567890abcdef12345678 using permit2 approval, recipient is the same wallet, deadline 60 seconds."},{"title":"Cross-wallet swap settlement","prompt":"Settle the token swap for quote q_deadbeef00112233 taken by 0xaaaBBBcccDDDeee1234567890abcdef123456789, send the output tokens to 0x9999888877776666555544443333222211110000, use approve method, 300 second deadline."},{"title":"Agent-managed on-chain token conversion","prompt":"My agent just got a swap quote q_cafe0123456789ab — go ahead and execute it from wallet 0xFeedb0000000000000000000000000000000beef using permit2, 90 second deadline, send output back to the same address."}],"resultDescription":"Returns the result of the on-chain swap execution, including transaction hash and settlement details confirming the token conversion has been submitted or completed.","failureModes":["Invalid or expired quote ID returns error","Taker address does not match quote taker","Deadline too short or exceeds 600 seconds returns validation error","Approval method not recognized (must be permit2 or approve)","Insufficient token balance or allowance causes transaction failure","On-chain transaction reverts due to slippage or liquidity issues","Malformed Ethereum address pattern returns 400 validation error"],"whenToPreferThis":"Use this endpoint after obtaining a swap quote (via the sibling Swap Quote endpoint) when you need to actually execute the on-chain token swap. This is the settlement step — not for price discovery or quoting. Prefer this when you have a valid quoteId and need to finalize the trade with either permit2 or standard ERC-20 approve authorization, optionally sending output to a different recipient address.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-10T12:35:37.379Z","isFirstParty":false,"canonicalSlug":"arcgate-swap-transaction-execute-c8a8bd51"}