Gridlock answer check — validates a coordinate path and measures its length against the BF
Gridlock answer check — validates a coordinate path and measures its length against the BFS optimum.
5000 (raw units)
price
4
calls / 30d
1
unique payers
2026-09-15
updated
Provider
agent-arcade.use.x402atlas.com · discovered, not yet claimed by its owner
Payment (x402 accepts[])
[
{
"scheme": "exact",
"network": "eip155:8453",
"payTo": "0x8C128f1Ee62Bb5e47867CfbAe2ad89be325Df1b2",
"asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"amount": "5000",
"maxTimeoutSeconds": 300
},
{
"scheme": "exact",
"network": "eip155:137",
"payTo": "0x8C128f1Ee62Bb5e47867CfbAe2ad89be325Df1b2",
"asset": "0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359",
"amount": "5000",
"maxTimeoutSeconds": 300
},
{
"scheme": "exact",
"network": "eip155:42161",
"payTo": "0x8C128f1Ee62Bb5e47867CfbAe2ad89be325Df1b2",
"asset": "0xaf88d065e77c8cC2239327C5EDb3A432268e5831",
"amount": "5000",
"maxTimeoutSeconds": 300
}
]Output schema
{
"bazaar": {
"category": "games",
"info": {
"input": {
"body": {
"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"
},
"bodyType": "json",
"method": "POST",
"type": "http"
},
"output": {
"example": {
"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
},
"type": "json"
}
},
"schema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"input": {
"additionalProperties": false,
"properties": {
"body": {
"additionalProperties": false,
"description": "Gridlock answer-check request using the identity and coordinate path for a daily maze.",
"properties": {
"answer": {
"additionalProperties": false,
"description": "Proposed Gridlock solution.",
"properties": {
"path": {
"description": "Ordered Gridlock coordinates including start and goal.",
"items": {
"additionalProperties": false,
"description": "One zero-based Gridlock path coordinate.",
"properties": {
"col": {
"maximum": 19,
"minimum": 0,
"type": "integer"
},
"row": {
"maximum": 19,
"minimum": 0,
"type": "integer"
}
},
"required": [
"row",
"col"
],
"type": "object"
},
"maxItems": 512,
"type": "array"
}
},
"required": [
"path"
],
"type": "object"
},
"challenge_id": {
"description": "Gridlock challenge_id copied from the daily envelope.",
"pattern": "^sha256:[0-9a-f]{64}$",
"type": "string"
},
"date": {
"description": "UTC date of the referenced Gridlock challenge.",
"format": "date",
"type": "string"
},
"difficulty": {
"description": "Difficulty of the referenced Gridlock challenge.",
"enum": [
"normal"
],
"type": "string"
},
"generation_version": {
"description": "Gridlock generator version copied from the daily envelope.",
"enum": [
"v1"
],
"type": "string"
}
},
"required": [
"challenge_id",
"generation_version",
"date",
"difficulty",
"answer"
],
"type": "object"
},
"bodyType": {
"enum": [
"json",
"form-data",
"text"
],
"type": "string"
},
"method": {
"enum": [
"POST"
],
"type": "string"
},
"type": {
"const": "http",
"type": "string"
}
},
"required": [
"type",
"method",
"bodyType",
"body"
],
"type": "object"
},
"output": {
"properties": {
"example": {
"additionalProperties": false,
"description": "Gridlock answer-check validity and optimality verdict.",
"properties": {
"challenge_id": {
"description": "Checked Gridlock challenge identity.",
"type": "string"
},
"correct": {
"description": "Whether the Gridlock path is optimal.",
"type": "boolean"
},
"feedback": {
"additionalProperties": false,
"description": "Gridlock path validity and optimality measurements.",
"properties": {
"absolute_gap": {
"type": [
"integer",
"null"
]
},
"first_invalid_step": {
"type": [
"integer",
"null"
]
},
"message": {
"type": "string"
},
"optimal_path_length": {
"type": "integer"
},
"percentage_gap_percent": {
"type": [
"number",
"null"
]
},
"submitted_path_length": {
"type": "integer"
}
},
"required": [
"message",
"first_invalid_step",
"submitted_path_length",
"optimal_path_length",
"absolute_gap",
"percentage_gap_percent"
],
"type": "object"
},
"game": {
"description": "Gridlock game identity.",
"enum": [
"gridlock"
],
"type": "string"
},
"proof": {
"additionalProperties": false,
"description": "Present only after a correct Gridlock answer.",
"properties": {
"optimal_path": {
"items": {
"additionalProperties": false,
"description": "One zero-based Gridlock path coordinate.",
"properties": {
"col": {
"maximum": 19,
"minimum": 0,
"type": "integer"
},
"row": {
"maximum": 19,
"minimum": 0,
"type": "integer"
}
},
"required": [
"row",
"col"
],
"type": "object"
},
"type": "array"
}
},
"required": [
"optimal_path"
],
"type": "object"
},
"score": {
"description": "Informational Gridlock score: 100 when correct, otherwise 0.",
"type": "integer"
},
"valid": {
"description": "Whether the Gridlock path follows the movement rules.",
"type": "boolean"
}
},
"required": [
"challenge_id",
"game",
"valid",
"correct",
"score",
"feedback"
],
"type": "object"
},
"type": {
"type": "string"
}
},
"required": [
"type"
],
"type": "object"
}
},
"required": [
"input"
],
"type": "object"
},
"tags": [
"gridlock",
"grid-path",
"maze",
"pathfinding",
"logic-puzzle",
"agent-game",
"answer-check"
]
}
}Use it
curl
curl "https://agent-arcade.use.x402atlas.com/gridlock/check" # -> 402 Payment Required, accepts[] lists how to pay # retry with a PAYMENT-SIGNATURE (or PAYMENT header) once paid
JavaScript
const res = await fetch("https://agent-arcade.use.x402atlas.com/gridlock/check");
if (res.status === 402) {
const { accepts } = await res.json();
// pay one of accepts[] via an x402 client, then retry with the payment header
}Python
import httpx
res = httpx.get("https://agent-arcade.use.x402atlas.com/gridlock/check")
if res.status_code == 402:
accepts = res.json()["accepts"]
# pay one of accepts[] via an x402 client, then retry with the payment headerMachine-readable
Everything on this page is also available as clean JSON at /resources/2225.json, and this resource appears in /discovery/resources and /discovery/search.