{"uid":"cap_qy6ttc44H1h63_JU-QmK8","slug":"dream-x420-dev-2f193e3a","name":"dream.x420.dev DREAM Token Purchase","description":"Buy 1 USDC worth of DREAM tokens 0xD7dA53A5d367CB31447FF74E3F9EEBd0e6932b07","url":"https://dream.x420.dev/api/puff","method":"POST","headers":{},"bodySchema":null,"responseSchema":{"message":"string","tokensReceived":"string","usdcAmountPaid":"string","sendTransactionHash":"string | null","swapTransactionHash":"string | null"},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"1","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":"$1/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"1","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"1","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_hLHqOcVm1slfzqGKNXrt3","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"1","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Purchases $1 USDC worth of DREAM tokens (0xD7dA53A5d367CB31447FF74E3F9EEBd0e6932b07) on behalf of the caller via an x402 payment-gated API","exampleAgentPrompt":"Buy me $1 worth of DREAM tokens — use USDC and swap into the DREAM contract at 0xD7dA53A5d367CB31447FF74E3F9EEBd0e6932b07.","exampleUseCases":[{"title":"Swap USDC for DREAM tokens","prompt":"Go ahead and swap $1 USDC into DREAM tokens for me — use the DREAM contract at 0xD7dA53A5d367CB31447FF74E3F9EEBd0e6932b07 and show me the transaction details when it's done."},{"title":"Auto-buy DREAM on trigger","prompt":"Every time my portfolio rebalancer fires, grab $1 worth of DREAM tokens using USDC and log the swap hash so I can track each purchase on-chain."},{"title":"Test DeFi micropayment workflow","prompt":"I want to test my x402 payment flow end-to-end — spend exactly $1 USDC to buy DREAM tokens at 0xD7dA53A5d367CB31447FF74E3F9EEBd0e6932b07 and return the confirmation with how many tokens I received."}],"resultDescription":"Returns a JSON object with a confirmation message, the number of DREAM tokens received, the USDC amount paid, and up to two blockchain transaction hashes: one for the USDC send and one for the token swap.","failureModes":["Insufficient USDC balance — payment fails and no tokens are received","x402 payment header missing or invalid — request rejected before swap executes","Smart contract swap failure — send transaction may succeed but swap transaction hash is null","Network congestion or RPC failure — transaction may time out or remain pending","Token liquidity too low — swap may fail or return fewer tokens than expected"],"whenToPreferThis":"Use this endpoint when an agent needs to programmatically acquire DREAM tokens by spending exactly $1 USDC in a single API call with x402 micropayment support. Prefer this over manual DEX interactions when automating on-chain token purchases in an agentic workflow that already handles x402 payments.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T06:37:03.602Z","isFirstParty":false}