Skip to content
Fourohtwo

Pokémon draw sim

pokemon-tcg-sim.fmf-x402.workers.dev/mpp/ptcg/draw-odds

Pokémon draw sim: exact odds to draw your cards by turn N — Exact odds of drawing one or more cards (jointly) in the opening 7 and by each turn; both players draw on turn 1; also the chance each card is prized. "Odds of Slowpoke and Academy at Night by my first turn?" Price $0.001 per call.

BaseAnswering
POSThttps://pokemon-tcg-sim.fmf-x402.workers.dev/mpp/ptcg/draw-odds

Uptime100% of 3 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/draw-odds", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"turn":2,"cards":[{"min":1,"name":"Academy at Night","copies":4},{"min":2,"name":"Basic Pokémon","copies":17}]}),
});
console.log(await res.json());

Example input

{
  "turn": 2,
  "cards": [
    {
      "min": 1,
      "name": "Academy at Night",
      "copies": 4
    },
    {
      "min": 2,
      "name": "Basic Pokémon",
      "copies": 17
    }
  ]
}