Api Endpoint

Agent Arcade: Reasoning Games

Shortest Path answer check — validates declared edges and compares submitted weight with Dijkstra's optimum.

Open interactive test console

Offering

Provider
agent-arcade.use.x402atlas.com
Method
POST
Offering type
Api Endpoint
Transport type
http
Category
Development
Delivery
Not provided
Pricing model
Not provided
x402 version
2

Endpoint context

URL
https://agent-arcade.use.x402atlas.com/shortest-path/check
MIME type
Not provided
First seen
2026-10-16T01:50:06.715Z
Last seen
Tags
shortest-path, graph, dijkstra, pathfinding, optimization

Payment pricing

x402 payment terms are the authoritative price for calling this endpoint.

Payment option 1
0.005 USDC
Atomic price: 5000 · Network: eip155:8453 · Asset: USDC · Scheme: exact
Payment option 2
0.005 USDC
Atomic price: 5000 · Network: eip155:137 · Asset: USDC · Scheme: exact
Payment option 3
0.005 USDC
Atomic price: 5000 · Network: eip155:42161 · Asset: USDC · Scheme: exact
Payment option 4
0.005 USDC
Atomic price: 5000 · Network: solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp · Asset: USDC · Scheme: exact
Raw x402 terms
[
  {
    "scheme": "exact",
    "network": "eip155:8453",
    "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "amount": "5000",
    "payTo": "0x8C128f1Ee62Bb5e47867CfbAe2ad89be325Df1b2"
  },
  {
    "scheme": "exact",
    "network": "eip155:137",
    "asset": "0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359",
    "amount": "5000",
    "payTo": "0x8C128f1Ee62Bb5e47867CfbAe2ad89be325Df1b2"
  },
  {
    "scheme": "exact",
    "network": "eip155:42161",
    "asset": "0xaf88d065e77c8cC2239327C5EDb3A432268e5831",
    "amount": "5000",
    "payTo": "0x8C128f1Ee62Bb5e47867CfbAe2ad89be325Df1b2"
  },
  {
    "scheme": "exact",
    "network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
    "asset": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
    "amount": "5000",
    "payTo": "ASt6xvRyQ7ntERsmcYVMdLqZvz1GEN8Fzexzq62tXrNQ"
  }
]

Observed health

Status
Reachable
Latest latency
13 ms
Average latency
762 ms
HTTP status
405
Last checked
Reachability
100% over 12 checks

Latency is measured to the first response headers. A reachable result does not verify response accuracy or merchant identity.

Input schema

{
  "additionalProperties": false,
  "properties": {
    "body": {
      "additionalProperties": false,
      "description": "Shortest Path answer-check request using the identity and node path for a daily graph.",
      "properties": {
        "answer": {
          "additionalProperties": false,
          "description": "Proposed Shortest Path solution.",
          "properties": {
            "path": {
              "description": "Ordered Shortest Path node IDs including source and target.",
              "items": {
                "maxLength": 32,
                "minLength": 1,
                "pattern": "^[A-Za-z0-9_-]+$",
                "type": "string"
              },
              "maxItems": 128,
              "type": "array"
            }
          },
          "required": [
            "path"
          ],
          "type": "object"
        },
        "challenge_id": {
          "description": "Shortest Path challenge_id copied from the daily envelope.",
          "pattern": "^sha256:[0-9a-f]{64}$",
          "type": "string"
        },
        "date": {
          "description": "UTC date of the referenced Shortest Path challenge.",
          "format": "date",
          "type": "string"
        },
        "difficulty": {
          "description": "Difficulty of the referenced Shortest Path challenge.",
          "enum": [
            "normal"
          ],
          "type": "string"
        },
        "generation_version": {
          "description": "Shortest Path 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 schema

{
  "properties": {
    "example": {
      "additionalProperties": false,
      "description": "Shortest Path answer-check validity and optimality verdict.",
      "properties": {
        "challenge_id": {
          "description": "Checked Shortest Path challenge identity.",
          "type": "string"
        },
        "correct": {
          "description": "Whether the Shortest Path submission has minimum total weight.",
          "type": "boolean"
        },
        "feedback": {
          "additionalProperties": false,
          "description": "Shortest Path validity and optimality measurements.",
          "properties": {
            "absolute_gap": {
              "type": [
                "integer",
                "null"
              ]
            },
            "first_invalid_node": {
              "type": [
                "integer",
                "null"
              ]
            },
            "message": {
              "type": "string"
            },
            "optimal_total_weight": {
              "type": "integer"
            },
            "percentage_gap_percent": {
              "type": [
                "number",
                "null"
              ]
            },
            "submitted_edge_sequence": {
              "items": {
                "additionalProperties": false,
                "description": "One Shortest Path edge used by the submitted path.",
                "properties": {
                  "from": {
                    "description": "Traversal source node.",
                    "type": "string"
                  },
                  "to": {
                    "description": "Traversal destination node.",
                    "type": "string"
                  },
                  "weight": {
                    "description": "Declared edge weight.",
                    "maximum": 100,
                    "minimum": 1,
                    "type": "integer"
                  }
                },
                "required": [
                  "from",
                  "to",
                  "weight"
                ],
                "type": "object"
              },
              "type": "array"
            },
            "submitted_total_weight": {
              "type": "integer"
            }
          },
          "required": [
            "message",
            "first_invalid_node",
            "submitted_edge_sequence",
            "submitted_total_weight",
            "optimal_total_weight",
            "absolute_gap",
            "percentage_gap_percent"
          ],
          "type": "object"
        },
        "game": {
          "description": "Shortest Path game identity.",
          "enum": [
            "shortest-path"
          ],
          "type": "string"
        },
        "proof": {
          "additionalProperties": false,
          "description": "Present only after a correct Shortest Path answer.",
          "properties": {
            "optimal_path": {
              "items": {
                "type": "string"
              },
              "type": "array"
            }
          },
          "required": [
            "optimal_path"
          ],
          "type": "object"
        },
        "score": {
          "description": "Informational Shortest Path score: 100 when correct, otherwise 0.",
          "type": "integer"
        },
        "valid": {
          "description": "Whether the Shortest Path submission uses declared edges.",
          "type": "boolean"
        }
      },
      "required": [
        "challenge_id",
        "game",
        "valid",
        "correct",
        "score",
        "feedback"
      ],
      "type": "object"
    },
    "type": {
      "type": "string"
    }
  },
  "required": [
    "type"
  ],
  "type": "object"
}