# Megapot Lottery Ticket Purchase

> Megapot Lottery Ticket Purchase is a paid API for AI agents from Megapot at megapot.mpp.paysponge.com, paid per call via MPP, $1/call, status unknown (last checked 2026-10-12).

Buys a random Megapot lottery ticket on Base mainnet, minting the ticket NFT to a specified Ethereum address using USDC payment.

## Facts

- Endpoint: POST https://megapot.mpp.paysponge.com/purchase?utm_source=zero.xyz
- Price: $1/call
- Payment: MPP
- Status: unknown
- Last checked: 2026-10-12
- Activations on Zero: 0
- Provider: Megapot
- Docs: https://megapot.io
- Website: https://megapot.io
- Tags: lottery, gaming, tickets, base, agent-commerce, web, blockchain
- Canonical page: https://www.zero.xyz/c/megapot-purchase-73fc967b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_y1F-TQ06mKjFvC946Cgun

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability megapot-purchase-73fc967b -d '<json body>'
```

Example prompt: Buy me a Megapot lottery ticket and send it to my Ethereum address 0xAbC1234567890123456789012345678901234abcd.

## When to prefer this

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.

## Known failure modes

- 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

## How this service works

Buys a random Megapot lottery ticket on Base mainnet. The server wallet pays USDC and the ticket NFT is minted to the specified recipient.

## Output

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.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "recipient"
 ],
 "properties": {
  "recipient": {
   "type": "string",
   "pattern": "^0x[a-fA-F0-9]{40}$",
   "description": "Ethereum address to receive the ticket NFT"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "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"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/megapot-purchase-73fc967b/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from megapot.mpp.paysponge.com](https://www.zero.xyz/host/megapot.mpp.paysponge.com/llms.txt)
