routepot.compose.land/v1/game/play
Play a Routepot puzzle ($0.10) with a route from its start to its target token and learn at once whether it won a multiple of the entry. The better the route, the better the odds; each puzzle's rules give the multiples, odds and rake in force.
POST
https://routepot.compose.land/v1/game/playUptime100% of 5 checks in 30 days
30 days agoToday
Try it
Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.
The response shows up here.
Call it from an agent
// npm install fourohtwo
import { createPayer } from "fourohtwo";
// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://routepot.compose.land/v1/game/play", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"path":[0,4,9],"puzzle":"1794162595908-22844543f8451a3a0952c3d815c2d27a"}),
});
console.log(await res.json());Example input
{
"path": [
0,
4,
9
],
"puzzle": "1794162595908-22844543f8451a3a0952c3d815c2d27a"
}