{"uid":"cap_bmvv2FiU8hmGzTOnq3rZM","slug":"dir-x420-dev-dde350c7","name":"DIR Token Custom USDC Purchase","description":"Buy custom USDC amount worth of DIR tokens 0x78e2bABb02BAECeA3449fA3Bea7b190B2e49DB07","url":"https://dir.x420.dev/api/puff-custom","method":"POST","headers":{},"bodySchema":null,"responseSchema":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_ol_8WJFtO91fo5cUlMFSN","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 DIR tokens (0x78e2bABb02BAECeA3449fA3Bea7b190B2e49DB07) on behalf of the caller","exampleAgentPrompt":"Buy me 10 USDC worth of DIR tokens using the custom purchase endpoint.","exampleUseCases":[{"title":"Investment portfolio rebalancing","prompt":"I want to diversify my crypto holdings by putting 25 USDC into DIR tokens right now. Can you handle that for me?"},{"title":"Programmatic token accumulation","prompt":"Set up a purchase of 7.5 USDC worth of DIR tokens and show me the transaction details when it's done."},{"title":"Testing before larger purchase","prompt":"Let me test the waters with a small 0.5 USDC DIR token purchase first to see how it goes."}],"resultDescription":"Returns a confirmation message, the number of DIR tokens received, the USDC amount paid, a send transaction hash, and a swap transaction hash (both may be null if not applicable).","failureModes":["Invalid or non-numeric amount string returns an error","Insufficient USDC balance causes transaction failure","Blockchain congestion or RPC errors may result in null transaction hashes","Amount below minimum threshold may be rejected","Payment of $5 USDC not included results in 402 payment required error"],"whenToPreferThis":"Use this endpoint when you need to buy a specific custom USDC amount of DIR tokens (e.g. 0.5, 10.5, 25) rather than the fixed 1 USDC amount offered by the sibling endpoint. Choose this when flexibility in purchase size is required.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T12:39:46.551Z","isFirstParty":false}