{"uid":"cap_-Z1F8q4gKH1hE1lcWYCQr","slug":"x402-vending-machine-buy-20-usdc-of-tokens-ffb40bad","name":"x402 Vending Machine – Buy $20 USDC of Tokens","description":"Buy $20.00 USDC worth of tokens from the vending machine. The token launch must be open to buy, and the allocation cap must not have been reached.","url":"https://vending-machine.heurist.xyz/x402/buy20x?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","required":["token"],"properties":{"token":{"type":"string","description":"Token address"},"recipient":{"type":"string","description":"Optional recipient address; default is the API caller"}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"20","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"registry","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":"$20/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"20","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"20","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_vBWMpGegY_9n1sojTqqui","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"20","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Purchase $20.00 USDC worth of tokens from a specific token launch on the Heurist vending machine, subject to launch being open and allocation cap not being reached.","exampleAgentPrompt":"Buy $20 worth of tokens from the Heurist vending machine for token address 0xAbC123... and send them to my wallet 0xDef456....","exampleUseCases":[{"title":"Participating in a new token launch","prompt":"I want to buy into the new token launch on the Heurist vending machine — spend $20 USDC on token 0xAbC123... and put the tokens in my wallet 0xDef456...."},{"title":"Automated bot acquiring vending machine tokens","prompt":"Every time a new token launch goes live on the Heurist vending machine, automatically buy $20 worth of that token and send the allocation to my wallet 0xDef456...."},{"title":"Buying tokens as a gift for another wallet","prompt":"Buy $20 USDC worth of tokens from the Heurist vending machine for token 0xAbC123... and send them to my friend's wallet 0xGhi789... instead of mine."}],"resultDescription":"Returns a confirmation of the $20 USDC token purchase, including the token amount received and transaction details. If the launch is not open or the allocation cap has been reached, an error is returned indicating the purchase could not be completed.","failureModes":["Token launch is not currently open for purchases — returns an error indicating the sale is closed","Allocation cap has already been reached — returns an error that no more tokens are available","Invalid or unrecognized token address — returns a validation error","Recipient address is malformed — returns an address validation error","Insufficient payment or payment failure — x402 payment not processed correctly","Network or blockchain congestion causing transaction delay or failure"],"whenToPreferThis":"Use this endpoint when you need to purchase exactly $20 USDC worth of tokens from a Heurist vending machine token launch. Prefer this over the $3, $4, or $5 tiers when you want a larger single allocation without reaching the maximum tier. It is specifically suited for automated agents participating in token launches programmatically via x402 payments.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-13T00:39:02.161Z","isFirstParty":false,"canonicalSlug":"x402-vending-machine-buy-20-usdc-of-tokens-ffb40bad"}