Api Endpoint

Saylor Innovations Guide Library

Building an AI Agent That Pays for Data: A Practical x402 Walkthrough. A working implementation walkthrough for an AI agent consuming an x402-gated API: reading the 402 response and its accepts array, choosing a payment method (facilitator-settled transaction vs self-submitted reference), building the payment, and handling the settlement-lag retry loop — using this site’s own live Watchdog endpoints as the worked example.

Open interactive test console

Offering

Provider
saylorinnovations.com
Method
GET
Offering type
Api Endpoint
Transport type
http
Category
Blockchain And Crypto
Delivery
Not provided
Pricing model
Not provided
x402 version
2

Endpoint context

URL
https://saylorinnovations.com/api/kb/building-an-ai-agent-that-pays-with-x402
MIME type
application/json
First seen
2026-10-16T01:59:13.392Z
Last seen
Tags
X402, AI-agents, micropayments, Solana, http-402

Payment pricing

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

Payment option 1
0.01 USDC
Atomic price: 10000 · Network: solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp · Asset: USDC · Scheme: exact
Payment option 2
10000 atomic units
Atomic price: 10000 · Network: solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp · Asset: Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB · Scheme: exact
Payment option 3
10000 atomic units
Atomic price: 10000 · Network: solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp · Asset: HzwqbKZw8HxMN6bF2yFZNrht3c2iXXzpKcFu7uBEDKtr · Scheme: exact
Payment option 4
0.01 USDC
Atomic price: 10000 · Network: eip155:8453 · Asset: USDC · Scheme: exact
Payment option 5
10000 atomic units
Atomic price: 10000 · Network: eip155:8453 · Asset: 0x60a3e35cc302bfa44cb288bc5a4f316fdb1adb42 · Scheme: exact
Payment option 6
0.01 USDC
Atomic price: 10000 · Network: eip155:137 · Asset: USDC · Scheme: exact
Payment option 7
0.01 USDC
Atomic price: 10000 · Network: eip155:42161 · Asset: USDC · Scheme: exact
Payment option 8
140782 atomic units
Atomic price: 140782 · Network: solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp · Asset: So11111111111111111111111111111111111111112 · Scheme: exact
Raw x402 terms
[
  {
    "scheme": "exact",
    "network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
    "asset": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
    "amount": "10000",
    "payTo": "7LSjfrJf8fNsB8VA9u7N3WEn25smQLpob3SvyUvXacy7"
  },
  {
    "scheme": "exact",
    "network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
    "asset": "Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB",
    "amount": "10000",
    "payTo": "7LSjfrJf8fNsB8VA9u7N3WEn25smQLpob3SvyUvXacy7"
  },
  {
    "scheme": "exact",
    "network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
    "asset": "HzwqbKZw8HxMN6bF2yFZNrht3c2iXXzpKcFu7uBEDKtr",
    "amount": "10000",
    "payTo": "7LSjfrJf8fNsB8VA9u7N3WEn25smQLpob3SvyUvXacy7"
  },
  {
    "scheme": "exact",
    "network": "eip155:8453",
    "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "amount": "10000",
    "payTo": "0xA2A8dF0f7CaaBEa4e120a2568118f141569fc8aa"
  },
  {
    "scheme": "exact",
    "network": "eip155:8453",
    "asset": "0x60a3e35cc302bfa44cb288bc5a4f316fdb1adb42",
    "amount": "10000",
    "payTo": "0xA2A8dF0f7CaaBEa4e120a2568118f141569fc8aa"
  },
  {
    "scheme": "exact",
    "network": "eip155:137",
    "asset": "0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359",
    "amount": "10000",
    "payTo": "0xA2A8dF0f7CaaBEa4e120a2568118f141569fc8aa"
  },
  {
    "scheme": "exact",
    "network": "eip155:42161",
    "asset": "0xaf88d065e77c8cC2239327C5EDb3A432268e5831",
    "amount": "10000",
    "payTo": "0xA2A8dF0f7CaaBEa4e120a2568118f141569fc8aa"
  },
  {
    "scheme": "exact",
    "network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
    "asset": "So11111111111111111111111111111111111111112",
    "amount": "140782",
    "payTo": "7LSjfrJf8fNsB8VA9u7N3WEn25smQLpob3SvyUvXacy7"
  }
]

Observed health

Status
Healthy
Latest latency
113 ms
Average latency
179 ms
HTTP status
402
Last checked
Reachability
100% over 20 checks

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

Input schema

{
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "const": "http"
    },
    "method": {
      "type": "string",
      "enum": [
        "GET",
        "POST",
        "PUT",
        "PATCH",
        "DELETE",
        "HEAD"
      ]
    },
    "discoverable": {
      "type": "boolean",
      "const": true
    }
  },
  "required": [
    "type",
    "method",
    "discoverable"
  ],
  "additionalProperties": false
}

Output schema

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "properties": {
    "input": {
      "additionalProperties": false,
      "properties": {
        "method": {
          "enum": [
            "GET",
            "POST",
            "PUT",
            "PATCH",
            "DELETE",
            "HEAD"
          ],
          "type": "string"
        },
        "type": {
          "const": "http",
          "type": "string"
        }
      },
      "required": [
        "type",
        "method"
      ],
      "type": "object"
    },
    "output": {
      "properties": {
        "example": {
          "properties": {
            "body": {
              "description": "Main body text",
              "type": "string"
            },
            "c": {
              "description": "Category of the guide",
              "type": "string"
            },
            "id": {
              "description": "Identifier of the record",
              "type": "string"
            },
            "license": {
              "description": "License identifier",
              "type": "string"
            },
            "price": {
              "description": "Price",
              "type": [
                "number",
                "null"
              ]
            },
            "t": {
              "description": "Title of the guide",
              "type": "string"
            }
          },
          "required": [
            "id",
            "t",
            "c",
            "body"
          ],
          "type": "object"
        },
        "type": {
          "const": "json",
          "type": "string"
        }
      },
      "required": [
        "type"
      ],
      "type": "object"
    }
  },
  "required": [
    "input"
  ],
  "type": "object"
}