{"uid":"cap_2o9Vck_4sx_jcDFCgZAVB","slug":"keyring-agent-swap-token-execution-fee-d512994c","name":"Keyring Agent Swap-Token Execution Fee","description":"Pay the swap-token execution fee (token-for-token swap)","url":"https://keyring-agent.blockchhub.link/api/swap-token","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":[],"properties":{},"additionalProperties":false}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","required":["status"],"properties":{"status":{"enum":["ok"],"type":"string","description":"ok once the execution fee is settled"}},"additionalProperties":false}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","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.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_tjViXDUKA7yDFIf_16UTT","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Pays the execution fee required to authorize and settle a token-for-token swap operation on-chain","exampleAgentPrompt":"Pay the swap-token execution fee so I can proceed with my token-for-token swap — it costs 0.001 USDC via the x402 protocol.","exampleUseCases":[{"title":"Automated DeFi swap pipeline","prompt":"I want to swap USDC for ETH through my on-chain agent — go ahead and pay the required swap-token execution fee so the trade can go through."},{"title":"Agent-driven portfolio rebalancing","prompt":"My portfolio bot needs to rebalance by swapping WBTC for USDT — please pay the 0.001 USDC execution fee so the keyring agent can process the token-for-token swap."},{"title":"One-click token exchange in dApp","prompt":"The user just hit 'swap' in my dApp — pay the swap-token execution fee now so the on-chain swap transaction gets unlocked and processed immediately."}],"resultDescription":"Returns a JSON object with a status field set to 'ok' once the swap-token execution fee has been successfully settled, confirming the swap operation is authorized to proceed.","failureModes":["Payment insufficient — fee not covered, status not returned as 'ok'","x402 payment protocol failure — handshake or authorization rejected","Endpoint unreachable — network or DNS issue with blockchhub.link domain","Timeout — fee settlement takes too long and request expires","Duplicate payment attempt — idempotency not guaranteed, may result in double charge"],"whenToPreferThis":"Use this endpoint specifically when an AI agent or automated workflow needs to pay the execution fee for a token-for-token swap operation (not ERC-20 transfers, NFT transfers, or liquidity provision). Choose this over sibling endpoints when the intended on-chain action is a token swap rather than a native coin transfer, NFT transfer, or lending market supply.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T12:30:37.342Z","isFirstParty":false}