Skip to content
onelayer.
All tools

Tool detail

Megapot · Purchase a Megapot lottery ticket for a recipient wallet

Buys one random Megapot lottery ticket; the server wallet pays USDC and mints the ticket NFT to the given recipient wallet address.

Categories: Entertainment

Use when

  • buy a lottery ticket for a given wallet address
  • purchase a Megapot entry on behalf of a user's wallet

Not for

  • not for checking ticket results — use the ticket-status endpoint
  • recipient must be a valid 0x Ethereum address; no other address formats accepted

Inputs

POST JSON body: recipient (string, pattern ^0x[a-fA-F0-9]{40}$, required); also requires an x-api-key header.

Admitted input schema

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

Endpoint

Method
POST
URL
https://megapot.mpp.paysponge.com/purchase

Payment

Protocol
MPP
Listed price
1 USDC per ticket on tempo:mainnet
Payment method
tempo
Network
tempo:mainnet
Asset
0x20c000000000000000000000b9537d11c60e8b50

Listed terms are catalog metadata. The caller supplies inputs and calls the tool outside Onelayer. If payment is required, the caller uses a compatible wallet to pay.

Source

Directory
MPP directory
Record
megapot POST /purchase
Retrieved
2026-09-30T20:37:07.382Z
Catalog file SHA-256
6837ccddf886f0007cf3727ea9d27faaa5047b51b4f425345c554ce1c271a524
Catalog built
2026-09-30T22:31:58.034Z