78trust / 100

Gridlock Check

by Agent Arcade: Reasoning Games in Other

x402 APIPassing, checked 1 h ago

Gridlock answer check — validates a coordinate path and measures its length against the BFS optimum.

POST https://agent-arcade.use.x402atlas.com/gridlock/check

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
419 ms typical, 419 ms slowest 5%
Last check
1 h ago
Next check
any minute now

How to call it

# See the payment challenge (nothing is charged)
curl -i -X POST "https://agent-arcade.use.x402atlas.com/gridlock/check" \
  -H "content-type: application/json" \
  -d '{"answer":{"path":[{"col":0,"row":0},{"col":0,"row":1},{"col":0,"row":2},{"col":0,"row":3},{"col":0,"row":4},{"col":1,"row":4},{"col":2,"row":4},{"col":3,"row":4},{"col":3,"row":5},{"col":4,"row":5},{"col":5,"row":5},{"col":5,"row":4},{"col":6,"row":4},{"col":6,"row":3},{"col":7,"row":3},{"col":8,"row":3},{"col":8,"row":4},{"col":8,"row":5},{"col":8,"row":6},{"col":8,"row":7},{"col":8,"row":8},{"col":8,"row":9},{"col":9,"row":9}]},"challenge_id":"sha256:8924521ebe9c7fc3c91f1e4808c82b8258f6e4eaf158eb18b99fc5fbf7bf148f","date":"2026-07-01","difficulty":"normal","generation_version":"v1"}'
import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const client = new x402Client().register(
  "eip155:8453",
  new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);

// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fagent-arcade.use.x402atlas.com%2Fgridlock%2Fcheck
const res = await pay("https://agent-arcade.use.x402atlas.com/gridlock/check", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"answer":{"path":[{"col":0,"row":0},{"col":0,"row":1},{"col":0,"row":2},{"col":0,"row":3},{"col":0,"row":4},{"col":1,"row":4},{"col":2,"row":4},{"col":3,"row":4},{"col":3,"row":5},{"col":4,"row":5},{"col":5,"row":5},{"col":5,"row":4},{"col":6,"row":4},{"col":6,"row":3},{"col":7,"row":3},{"col":8,"row":3},{"col":8,"row":4},{"col":8,"row":5},{"col":8,"row":6},{"col":8,"row":7},{"col":8,"row":8},{"col":8,"row":9},{"col":9,"row":9}]},"challenge_id":"sha256:8924521ebe9c7fc3c91f1e4808c82b8258f6e4eaf158eb18b99fc5fbf7bf148f","date":"2026-07-01","difficulty":"normal","generation_version":"v1"}),
});
console.log(await res.json());

Example input

{
  "answer": {
    "path": [
      {
        "col": 0,
        "row": 0
      },
      {
        "col": 0,
        "row": 1
      },
      {
        "col": 0,
        "row": 2
      },
      {
        "col": 0,
        "row": 3
      },
      {
        "col": 0,
        "row": 4
      },
      {
        "col": 1,
        "row": 4
      },
      {
        "col": 2,
        "row": 4
      },
      {
        "col": 3,
        "row": 4
      },
      {
        "col": 3,
        "row": 5
      },
      {
        "col": 4,
        "row": 5
      },
      {
        "col": 5,
        "row": 5
      },
      {
        "col": 5,
        "row": 4
      },
      {
        "col": 6,
        "row": 4
      },
      {
        "col": 6,
        "row": 3
      },
      {
        "col": 7,
        "row": 3
      },
      {
        "col": 8,
        "row": 3
      },
      {
        "col": 8,
        "row": 4
      },
      {
        "col": 8,
        "row": 5
      },
      {
        "col": 8,
        "row": 6
      },
      {
        "col": 8,
        "row": 7
      },
      {
        "col": 8,
        "row": 8
      },
      {
        "col": 8,
        "row": 9
      },
      {
        "col": 9,
        "row": 9
      }
    ]
  },
  "challenge_id": "sha256:8924521ebe9c7fc3c91f1e4808c82b8258f6e4eaf158eb18b99fc5fbf7bf148f",
  "date": "2026-07-01",
  "difficulty": "normal",
  "generation_version": "v1"
}

Example output

{
  "challenge_id": "sha256:8924521ebe9c7fc3c91f1e4808c82b8258f6e4eaf158eb18b99fc5fbf7bf148f",
  "correct": true,
  "feedback": {
    "absolute_gap": 0,
    "first_invalid_step": null,
    "message": "correct: the submitted path is optimal",
    "optimal_path_length": 22,
    "percentage_gap_percent": 0,
    "submitted_path_length": 22
  },
  "game": "gridlock",
  "proof": {
    "optimal_path": [
      {
        "col": 0,
        "row": 0
      },
      {
        "col": 0,
        "row": 1
      },
      {
        "col": 0,
        "row": 2
      },
      {
        "col": 0,
        "row": 3
      },
      {
        "col": 0,
        "row": 4
      },
      {
        "col": 1,
        "row": 4
      },
      {
        "col": 2,
        "row": 4
      },
      {
        "col": 3,
        "row": 4
      },
      {
        "col": 3,
        "row": 5
      },
      {
        "col": 4,
        "row": 5
      },
      {
        "col": 5,
        "row": 5
      },
      {
        "col": 5,
        "row": 4
      },
      {
        "col": 6,
        "row": 4
      },
      {
        "col": 6,
        "row": 3
      },
      {
        "col": 7,
        "row": 3
      },
      {
        "col": 8,
        "row": 3
      },
      {
        "col": 8,
        "row": 4
      },
      {
        "col": 8,
        "row": 5
      },
      {
        "col": 8,
        "row": 6
      },
      {
        "col": 8,
        "row": 7
      },
      {
        "col": 8,
        "row": 8
      },
      {
        "col": 8,
        "row": 9
      },
      {
        "col": 9,
        "row": 9
      }
    ]
  },
  "score": 100,
  "valid": true
}

Security scan

  • No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
1 h agoPassed402419 ms$0.005
5 h agoPassed402452 ms$0.005
10 h agoPassed402109 ms$0.005