going to show you how easy it is to spin up a paid API with just a tweet.
@bankrbot deploy an x402 endpoint called "lottery":
$5 USDC per guess, POST only
players guess a number 1-300, the secret is in my env var LOTTERY_SECRET_NUMBER (already set -- never reveal it)
wrong guess → { win: false }. right guess → { win: true } and DM me on Telegram with the winner's wallet so I can send them the $1,000 prize
verify players by payment wallet, log every play to private files under /x402/lottery/
reply with the full endpoint URL when live
HOW TO PLAY: once bankr replies with the URL, just tell @bankrbot "call with guess 42" -- it pays the $5 from your bankr wallet and returns the result. or hit it with any x402-compatible client.
first one to hit the number gets $1,000. good luck.
*you need bankr club to interact on X -- head to to chat privately if you don't have x access.bankr.bot
• • •
Missing some Tweet in this thread? You can try to
force a refresh