Skip to content
Fourohtwo

Settle one hand of Babcock 1923 Mah-Jongg

rules.ordstirr.com/v1/babcock/settle

Settle one hand of Babcock 1923 Mah-Jongg: who pays whom, with East paying and receiving double Terms: https://ordstirr.com/agents/terms

BaseAnswering
POSThttps://rules.ordstirr.com/v1/babcock/settle

Uptime100% of 4 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://rules.ordstirr.com/v1/babcock/settle", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"scores":{"E":48,"N":0,"S":16,"W":4},"winner":"E"}),
});
console.log(await res.json());

Example input

{
  "scores": {
    "E": 48,
    "N": 0,
    "S": 16,
    "W": 4
  },
  "winner": "E"
}