Skip to content
Fourohtwo

Replays a tennis point sequence (ITF Rules of Tennis

agents.writerslogic.com/api/v1/score-state

Replays a tennis point sequence (ITF Rules of Tennis: games, deuce, tie-breaks, match tie-break, who serves), computes a golf Score Differential and Handicap Index (World Handicap System), or tallies a cricket innings ball by ball (overs.balls, wides and no-balls, maidens, wickets), for agents that must verify a reported score. Optionally checks a claimed score against the replay and names the fir

BaseDown
POSThttps://agents.writerslogic.com/api/v1/score-state

Uptime50.0% 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://agents.writerslogic.com/api/v1/score-state", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"sport":"tennis","tennis":{"claim":{"setsWon":[0,0]},"bestOf":3,"points":"aaaabbbbaaaabbbbaabaaabbbbbbaaaaaa"}}),
});
console.log(await res.json());

Example input

{
  "sport": "tennis",
  "tennis": {
    "claim": {
      "setsWon": [
        0,
        0
      ]
    },
    "bestOf": 3,
    "points": "aaaabbbbaaaabbbbaabaaabbbbbbaaaaaa"
  }
}