{"uid":"cap_rh1bXMOrcelQGiPCfw53H","slug":"x420-x420-dev-68bf3b36","name":"x420 Custom USDC Token Purchase","description":"Buy custom USDC amount worth of x420 tokens 0x68e284F21D04D4D62398C290EC3EF41C97F80b07","url":"https://x420.x420.dev/api/puff-custom?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"amount":{"type":"string","description":"Optional amount in USDC (e.g., '10', '10.5', '0.5'). Defaults to 5 if not provided."}}},"responseSchema":{"message":"string","tokensReceived":"string","usdcAmountPaid":"string","sendTransactionHash":"string | null","swapTransactionHash":"string | null"},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"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":"$5/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"5","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"5","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_b7bGy8wQaVwpJN0EKVCjO","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"5","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Buys a custom USDC amount worth of x420 tokens (0x68e284F21D04D4D62398C290EC3EF41C97F80b07) on behalf of the caller","exampleAgentPrompt":"Buy me $15 USDC worth of x420 tokens using the custom amount endpoint.","exampleUseCases":[{"title":"Spend exact USDC on x420","prompt":"I want to buy exactly $10.50 worth of x420 tokens using USDC — can you execute that swap for me?"},{"title":"DCA into x420 tokens","prompt":"As part of my weekly crypto routine, go ahead and purchase $25 worth of x420 tokens with my USDC right now."},{"title":"Small x420 test purchase","prompt":"I'd like to dip my toes in — buy me $0.75 worth of x420 tokens with USDC and show me the transaction details."}],"resultDescription":"Returns a message confirming the purchase, the number of x420 tokens received, the USDC amount paid, and the on-chain transaction hashes for both the USDC send and the token swap (which may be null if not yet available).","failureModes":["Invalid or non-numeric USDC amount string returns an error","Insufficient USDC balance in the calling wallet causes transaction failure","Token liquidity too low for the requested swap amount","On-chain transaction reverted, returning null transaction hashes","Network congestion causing timeout or delayed transaction confirmation","Amount below minimum threshold (e.g. less than 0.01 USDC) rejected by contract"],"whenToPreferThis":"Use this endpoint when you need to purchase a specific, non-standard USDC amount of x420 tokens — especially amounts other than the fixed $1 or $5 tiers offered by sibling endpoints. Ideal for agents that need precise control over spend amount (e.g. $10.50, $0.75).","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-18T18:37:51.452Z","isFirstParty":false,"canonicalSlug":"x420-x420-dev-68bf3b36"}