Gridlock answer check — validates a coordinate path and measures its length against the…
Gridlock answer check — validates a coordinate path and measures its length against the BFS optimum.
by agent-arcade.use.x402atlas.com · discovered, not yet claimed by its owner · updated 2026-10-08
Mirrored from Coinbase's public x402 Bazaar. The description is the provider's own text and has not been reviewed here; the payment requirements are copied as published.
What it does
Gridlock answer check — validates a coordinate path and measures its length against the BFS optimum.
Tags: gridlock · grid-path · maze · pathfinding · logic-puzzle · bazaar
Call contract
- Method
- POST
- Input
- json
- Output
- json
- Last paid call
- 2026-10-08
{
"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"
}{
"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
}Use with an agent
- Discover. Agents find this listing with
GET https://bazaar.saylorinnovations.com/discovery/search?query=…, the MCP toolsearch_resources, or/discovery/resources. - Inspect. Fetch
/resources/28464.jsonfor the price and payment options. - Pay. Call
GET https://agent-arcade.use.x402atlas.com/gridlock/check. The provider answers402with its payment requirements. An x402 client signs one of the options below and retries withPAYMENT-SIGNATURE. - Execute. The provider returns
200with the data. Agent Bazaar is not in the request path and never sees your payment.
For humans
You don't need an account or an API key; you need a wallet holding a small amount of USDC on Base, Polygon, Arbitrum One, Solana, and an x402-capable client (see the examples below). Call the endpoint unpaid first to see exactly what it asks for.
Pricing & payment
- Price
- $0.005 / request
- Protocol
- x402 v2
- Auth
- No account or API key. Pay per request.
- Networks
- Base, Polygon, Arbitrum One, Solana
- Demand
- 4 calls · 3 unique payers in 30d (public x402 Bazaar data)
x402 payment requirements
| Scheme | Network | Asset | Amount | Pay to | Timeout |
|---|---|---|---|---|---|
| exact | Base eip155:8453 | USDC | $0.005 | 0x8C128f1Ee62Bb5e47867CfbAe2ad89be325Df1b2 | 300s |
| exact | Polygon eip155:137 | USDC | $0.005 | 0x8C128f1Ee62Bb5e47867CfbAe2ad89be325Df1b2 | 300s |
| exact | Arbitrum One eip155:42161 | USDC | $0.005 | 0x8C128f1Ee62Bb5e47867CfbAe2ad89be325Df1b2 | 300s |
| exact | Solana solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp | USDC | $0.005 | ASt6xvRyQ7ntERsmcYVMdLqZvz1GEN8Fzexzq62tXrNQ | 300s |
accepts[] (raw JSON)
[
{
"scheme": "exact",
"network": "eip155:8453",
"payTo": "0x8C128f1Ee62Bb5e47867CfbAe2ad89be325Df1b2",
"asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"amount": "5000",
"amountUsd": 0.005,
"maxTimeoutSeconds": 300
},
{
"scheme": "exact",
"network": "eip155:137",
"payTo": "0x8C128f1Ee62Bb5e47867CfbAe2ad89be325Df1b2",
"asset": "0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359",
"amount": "5000",
"amountUsd": 0.005,
"maxTimeoutSeconds": 300
},
{
"scheme": "exact",
"network": "eip155:42161",
"payTo": "0x8C128f1Ee62Bb5e47867CfbAe2ad89be325Df1b2",
"asset": "0xaf88d065e77c8cC2239327C5EDb3A432268e5831",
"amount": "5000",
"amountUsd": 0.005,
"maxTimeoutSeconds": 300
},
{
"scheme": "exact",
"network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
"payTo": "ASt6xvRyQ7ntERsmcYVMdLqZvz1GEN8Fzexzq62tXrNQ",
"asset": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
"amount": "5000",
"amountUsd": 0.005,
"maxTimeoutSeconds": 300
}
]Schemas
Output schema (JSON Schema)
{
"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"
}Example shape — generated from the schema, not a captured live response
{
"example": {
"challenge_id": "string",
"correct": true,
"feedback": {
"absolute_gap": 0,
"first_invalid_step": 0,
"message": "string",
"optimal_path_length": 0,
"percentage_gap_percent": 0,
"submitted_path_length": 0
},
"game": "gridlock",
"proof": {
"optimal_path": [
{
"col": 0,
"row": 0
}
]
},
"score": 0,
"valid": true
},
"type": "string"
}Examples
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 paidconst 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
}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 headerDetails
- Provider
- agent-arcade.use.x402atlas.com
- Endpoint
- https://agent-arcade.use.x402atlas.com/gridlock/check
- Machine-readable
/resources/28464.json