{"uid":"cap_siVgcKnE63YIMbND2g0OV","slug":"x402-vending-machine-buy-4-usdc-tokens-85dfecf1","name":"x402 Vending Machine – Buy $4 USDC Tokens","description":"Buy $4.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/buy4x?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":"4","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":"$4/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"4","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"4","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_v8Aq6d0VmwjBVL9I1UTw7","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"4","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Purchase $4.00 USDC worth of tokens from a Heurist vending machine token launch using x402 payment protocol.","exampleAgentPrompt":"Buy $4 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 $4 worth of the new token at address 0x1234abcd... from the Heurist vending machine — send them to my wallet 0xWallet..."},{"title":"Automated agent buying tokens on my behalf","prompt":"Whenever a new token launch opens on the Heurist vending machine, buy $4 worth of tokens at address 0xToken... and deposit them into my address 0xMyWallet..."},{"title":"Testing token purchase flow with small allocation","prompt":"Go ahead and purchase $4 USDC worth of the token at address 0xTestToken... from the vending machine and keep them in the default caller address."}],"resultDescription":"Returns a transaction confirmation including the purchase status, the amount of tokens received for the $4.00 USDC spent, and the recipient address that received the tokens.","failureModes":["Token launch is not open for buying — 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 non-existent token address — returns a validation error","Insufficient x402 payment — payment of $4 USDC not confirmed, transaction rejected","Invalid recipient address format — returns a schema validation error"],"whenToPreferThis":"Choose this endpoint when you want to purchase exactly $4.00 USDC worth of tokens in a single transaction. Use the $3 endpoint for a smaller purchase or the $5 endpoint for a slightly larger one. This is ideal for agents automating fixed-denomination token buys in open Heurist vending machine launches.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-11T06:31:23.649Z","isFirstParty":false,"canonicalSlug":"x402-vending-machine-buy-4-usdc-tokens-85dfecf1"}