Pokémon prize card odds
pokemon-tcg-sim.fmf-x402.workers.dev/mpp/ptcg/prize-odds
Pokémon prize card odds — Exact chance that 0, 1, 2… copies of each card end up in your 6 prizes, for up to 10 cards at once, conditioned on your opening hand or unconditional. Price $0.001. Omitted params use documented defaults.
POST
https://pokemon-tcg-sim.fmf-x402.workers.dev/mpp/ptcg/prize-oddsUptime100% of 2 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://pokemon-tcg-sim.fmf-x402.workers.dev/mpp/ptcg/prize-odds", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"cards":[{"name":"Ultra Ball","copies":4},{"name":"Latias ex","copies":2}]}),
});
console.log(await res.json());Example input
{
"cards": [
{
"name": "Ultra Ball",
"copies": 4
},
{
"name": "Latias ex",
"copies": 2
}
]
}