{"uid":"cap_y1F-TQ06mKjFvC946Cgun","slug":"megapot-purchase-73fc967b","name":"Megapot Lottery Ticket Purchase","description":"Buys a random Megapot lottery ticket on Base mainnet. The server wallet pays USDC and the ticket NFT is minted to the specified recipient.","url":"https://megapot.mpp.paysponge.com/purchase?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","required":["recipient"],"properties":{"recipient":{"type":"string","pattern":"^0x[a-fA-F0-9]{40}$","description":"Ethereum address to receive the ticket NFT"}}},"responseSchema":{"type":"object","properties":{"success":{"type":"boolean","example":true},"quantity":{"type":"integer","example":1},"recipient":{"type":"string"},"totalCost":{"type":"string","description":"Total USDC cost in base units"},"ticketPrice":{"type":"string","description":"Price per ticket in USDC base units"},"transactionHash":{"type":"string","description":"On-chain transaction hash"}}},"example":null,"exampleRequest":null,"tags":["lottery","gaming","tickets","base","agent-commerce","web","blockchain"],"displayCostAmount":"1","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":"$1/call","primary":{"kind":"static","protocol":"mpp","network":"tempo","amountUsd":"1","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"mpp","network":"tempo","amountUsd":"1","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_TC9AM6hNgyZwwqfp4zzlz","protocol":"mpp","methodType":"crypto","chain":"tempo","mode":"charge","costAmount":"1","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":"Megapot","brandSlug":"megapot-mpp","brandBaseUrl":"https://megapot.io","brandDocsUrl":"https://megapot.io","whatItDoes":"Buys a random Megapot lottery ticket on Base mainnet, minting the ticket NFT to a specified Ethereum address using USDC payment.","exampleAgentPrompt":"Buy me a Megapot lottery ticket and send it to my Ethereum address 0xAbC1234567890123456789012345678901234abcd.","exampleUseCases":null,"resultDescription":"Returns a JSON object confirming success, the number of tickets purchased (quantity), the recipient Ethereum address, total USDC cost in base units, per-ticket price in USDC base units, and the on-chain transaction hash for the Base mainnet minting transaction.","failureModes":["Invalid or malformed Ethereum address returns a 400 validation error","Insufficient USDC balance in server wallet causes transaction failure","Base mainnet congestion or RPC errors may cause transaction timeout","Megapot contract paused or unavailable returns a service error","Network connectivity issues to Base mainnet result in failure response"],"whenToPreferThis":"Use this endpoint when an AI agent or user wants to participate in the Megapot lottery by purchasing a ticket NFT on Base mainnet. Prefer this over manual on-chain transactions when automating lottery entry, especially when an agent wallet is handling USDC payment on behalf of a recipient address.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-12T06:36:07.712Z","isFirstParty":false,"canonicalSlug":"megapot-purchase-73fc967b"}