Flash limit and market orders straight from askRoger’s X-powered token leaderboard.
askRoger ranks tokens by what is happening on X right now: who is talking about them, how many KOLs, how many smart followers, plus launch risk flags from onchain data. Until this hackathon the only way to act on that was a referral link to GMGN or Photon. You left our app, found the token again, and traded somewhere else.
This project closes that gap with Definitive’s Flash API. Every Base and Arbitrum token on the leaderboard and on its token page now has a Trade with Flash button. It opens a drawer where you buy with USDC as a market order, or set a limit order with Matcha style controls (Market, -2%, -5%, -10%, custom) and an expiry. You approve USDC once, sign the order in your wallet, and Flash executes it onchain and pays the gas. Resting limit orders wait with Flash and can be cancelled from the Orders tab or from a new My Flash trades page that lists every order you placed, open and filled, with the fill transaction on BaseScan.
The social part: each token page shows how many askRoger traders already acted on it through Flash, with a one click share to X. We charge an integrator fee on every order through Flash, so this is monetised from day one.
Continuity track disclosure: askRoger existed before the event (leaderboard, token pages, signals, alerts, a Flask API, no wallet or trading of any kind). Everything related to trading was built during the event, is in the public repo with full commit history, and is live on app.askroger.ai. Verified on Base mainnet with real orders: a market buy filled, limit orders rested and were cancelled.
Two pieces. A Flask blueprint sits between our webapp and Flash. It holds the Flash API key server side, pins our integrator fee on every quote and order, validates chain and order type, strips the quote only fields Flash rejects on submit, and forwards the rest. It records every order in a MySQL table and keeps statuses in sync from Flash’s order list, which also backs the My trades page. Hermetic tests, no network.
The frontend is a React module with no new dependencies. Wallet access is raw window.ethereum JSON-RPC: eth_sendTransaction for the one time USDC approval, eth_signTypedData_v4 for the Permit2 and FlashOrder payloads Flash returns, personal_sign for cancels, eth_call for the USDC balance. We read Definitive’s open source flash-mcp client and copied the things that matter: domain.chainId comes back as a string and has to be coerced before signing, and Flash’s /order can create an order and still answer 4xx, so a failed submit is reconciled against the order list before we ever show an error, never retried blindly.
Two things bit us. Our API sits behind CloudFront, which cached the order status poll for two minutes, so the first real order filled onchain while the UI still said accepted. Fixed with a cache buster and no-store headers. And Flash returns 404 on the first status read for about a second after accepting an order, so that is tolerated rather than treated as failure.
Flash was the right fit because it is non custodial, runs every order type through one endpoint, and pays execution gas, which is exactly what a trade from a social feed needs.

