{
  "schema_version": "0.1",
  "name": "Nano Node API",
  "description": "REST API and payment infrastructure for the Nano (XNO) block-lattice network. Supports account queries, block operations, merchant invoicing, and prepaid AI agent access.",
  "url": "https://api.nanomakonode.com",
  "version": "1.0.0",
  "documentation_url": "https://api.nanomakonode.com/docs",
  "openapi_url": "https://api.nanomakonode.com/openapi.json",
  "capabilities": {
    "payment": true,
    "streaming": false,
    "webhooks": true,
    "batch_requests": true,
    "idempotency": true,
    "pagination": true
  },
  "authentication": {
    "schemes": [
      {
        "type": "apiKey",
        "in": "header",
        "name": "x-api-key",
        "description": "Public API key for read-only node endpoints"
      },
      {
        "type": "apiKey",
        "in": "header",
        "name": "x-admin-key",
        "description": "Admin key for wallet and write operations"
      },
      {
        "type": "apiKey",
        "in": "header",
        "name": "x-agent-key",
        "key_prefix": "nanoagent_sk_",
        "description": "Agent key with prepaid XNO credit balance. Deducted per request."
      }
    ]
  },
  "payment_model": {
    "type": "prepaid_credit",
    "currency": "XNO",
    "network": "nano",
    "http_status_on_insufficient": 402,
    "pricing_url": "https://api.nanomakonode.com/agent/pricing",
    "setup_steps": [
      "POST /agent/accounts with x-admin-key to create account",
      "Deposit XNO to the returned nano_address",
      "Use the returned agent_key as x-agent-key on all /v1/ requests"
    ]
  },
  "websocket": {
    "url": "wss://ws.nanomakonode.com",
    "protocol": "nano-node-ws",
    "topics": ["confirmation", "vote", "peer_change", "active_difficulty", "work"]
  },
  "contact": {
    "source_code": "https://github.com/gr0vity-dev/nano-node-docker"
  }
}
