{"uid":"cap_DeDC-zyXUz23vHYePxDxP","slug":"tokensense-buy-token-via-x402-b49815ad","name":"TokenSense Buy Token via x402","description":"x402-paid TokenSense routes, with parallel MPP routes under /mpp/*.","url":"https://x402.wach.ai/mpp/buyToken","method":"POST","headers":{},"bodySchema":{"type":"object","required":["walletAddress","buyTokenAddress"],"properties":{"walletAddress":{"type":"string","description":"Recipient EVM wallet address that receives the purchased token."},"buyTokenAddress":{"type":"string","description":"Base token contract address to buy. Base native USDC is rejected."}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.5","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.5/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.5","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.5","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_MytrKfreW1fUcPkmRoIaU","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.5","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Purchases a specified EVM token on Base and sends it to a given wallet address, paid via x402 micropayment protocol","exampleAgentPrompt":"Buy the token at Base contract address 0x4ed4E862860beD51a9570b96d89aF5E1B0Efefed and send it to my wallet 0xAbC123...456 — use the TokenSense buyToken route.","exampleUseCases":[{"title":"DeFi agent token acquisition","prompt":"Purchase the Base token at contract 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913 and send it to my wallet 0x1234567890abcdef1234567890abcdef12345678."},{"title":"Automated portfolio rebalancing","prompt":"I need to add the token at 0x4ed4E862860beD51a9570b96d89aF5E1B0Efefed on Base to my wallet 0xDeAdBeEf0000000000000000000000000000dead — go ahead and buy it for me."},{"title":"Onchain reward distribution","prompt":"As part of my reward payout, buy the Base token at contract 0x50c5725949A6F0c72E6C4a641F24049A917DB0Cb and deliver it to the recipient wallet 0xAaBbCcDdEeFf00112233445566778899AaBbCcDd."}],"resultDescription":"Returns confirmation of the token purchase and delivery to the specified wallet, likely including transaction hash, token details, and transfer status on the Base network.","failureModes":["walletAddress is not a valid EVM address — returns validation error","buyTokenAddress is Base native USDC contract — explicitly rejected by the API","buyTokenAddress is not a valid or recognized Base token contract — purchase fails","x402 payment fails or is insufficient — request rejected with 402 status","Token liquidity unavailable or swap route not found — purchase cannot be executed","Network congestion or RPC failure causing transaction timeout"],"whenToPreferThis":"Choose this endpoint when you need to programmatically purchase a specific EVM token on the Base network and deliver it directly to a wallet address, especially in agentic or automated workflows that use the x402 micropayment protocol. Prefer this over manual DEX interactions when you want a single API call to handle the buy-and-deliver flow without managing swap routing yourself.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-19T12:33:00.666Z","isFirstParty":false}