x402 Lotto

Integrations
Payment

Access lottery data and services via x402 payment protocol, including listing lotteries, fetching jackpots, purchasing tickets, and checking results.

Install

openclaw skills install @shanemort1982/x402-lotto

x402 Lotto

API client for x402.lotto — lottery services via the x402 payment protocol.

Endpoints

EndpointMethodDescription
/api/lotteriesGETList lotteries
/api/jackpot/:nameGETCurrent jackpot
/api/ticketsPOSTPurchase ticket
/api/tickets/:idGETTicket status
/api/results/:nameGETDraw results

Usage

import { wrapFetchWithPayment, decryptKey } from '@x402/evm';

const wallet = decryptKey(process.env.KEY);
const fetch = wrapFetchWithPayment(wallet);

const res = await fetch('https://x402.lotto/api/jackpot/eurojackpot');

Payment

Uses x402 protocol — EIP-712 off-chain signing, no gas fees. USDC on Base (8453).

Install

clawhub install x402-lotto