{
  "openapi": "3.1.0",
  "info": {
    "title": "XMR.PUB infrastructure API",
    "version": "1.0.0",
    "summary": "Read-only Monero node RPC, agent metadata, and status for xmr.pub.",
    "description": "xmr.pub exposes a public read-only Monero node (restricted RPC over HTTPS) and a small set of machine-readable documents describing the infrastructure (public node, libp2p rendezvous node). No authentication is used anywhere. Everything is read-only; the operator cannot sign transactions or access funds. Tor mirror of the node: /onion3/gpprcwwlc2c5lahjjfluii3jaanti2ss2afpqxpmebwx3dctper2moad:18089",
    "contact": {
      "name": "xmr.pub operator",
      "url": "https://xmr.pub/agents.md"
    }
  },
  "servers": [
    {
      "url": "https://xmr.pub",
      "description": "Site, JSON metadata and restricted-RPC passthrough (/api/*)."
    },
    {
      "url": "https://node.xmr.pub",
      "description": "Public Monero node, read-only restricted RPC over HTTPS (port 443)."
    }
  ],
  "security": [],
  "tags": [
    {
      "name": "node",
      "description": "Read-only Monero restricted RPC."
    },
    {
      "name": "metadata",
      "description": "Machine-readable description of this infrastructure."
    },
    {
      "name": "ops",
      "description": "Liveness and discovery helpers."
    }
  ],
  "paths": {
    "/status.json": {
      "get": {
        "operationId": "getNodeStatus",
        "tags": [
          "node"
        ],
        "summary": "Live node status (monerod get_info, flat JSON).",
        "description": "Returns the restricted-RPC get_info object unmodified: height, synchronized, status, difficulty, tx_pool_size, database_size, nettype, etc. Cached for at most a few seconds; prefer this over hammering /get_info.",
        "responses": {
          "200": {
            "description": "monerod get_info object.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MonerodGetInfo"
                }
              }
            }
          },
          "502": {
            "description": "Node RPC temporarily unavailable."
          }
        }
      }
    },
    "/api/v1/site.json": {
      "get": {
        "operationId": "getSiteMetadata",
        "tags": [
          "metadata"
        ],
        "summary": "This site as data: services, endpoints, policies.",
        "responses": {
          "200": {
            "description": "Site metadata document.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SiteMetadata"
                }
              }
            }
          }
        }
      }
    },
    "/api/{method}": {
      "parameters": [
        {
          "name": "method",
          "in": "path",
          "required": true,
          "description": "Available read-only restricted-RPC HTTP paths (verified). Method-style names such as get_fee_estimate must be called via POST /json_rpc instead.",
          "schema": {
            "type": "string",
            "enum": [
              "get_info",
              "getheight",
              "json_rpc",
              "get_transactions",
              "gettransactions",
              "is_key_image_spent",
              "get_blocks.bin",
              "getblocks.bin",
              "get_hashes.bin",
              "gethashes.bin",
              "get_blocks_by_height.bin",
              "getblocks_by_height.bin"
            ]
          }
        }
      ],
      "get": {
        "operationId": "rpcPassthroughGet",
        "tags": [
          "node"
        ],
        "summary": "Restricted-RPC passthrough (GET).",
        "summary_extra": "Path is rewritten to /{method} on the node; the origin is a --restricted-rpc monerod.",
        "responses": {
          "200": {
            "description": "monerod response (flat JSON for most methods; /json_rpc uses the JSON-RPC envelope)."
          },
          "403": {
            "description": "Path not in the read-only whitelist.",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "429": {
            "description": "Rate limited (60 requests/min per client IP, burst 20).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RateLimitError"
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "rpcPassthroughPost",
        "tags": [
          "node"
        ],
        "summary": "Restricted-RPC passthrough (POST, JSON body).",
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": true
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "monerod response."
          },
          "403": {
            "description": "Path not in the read-only whitelist."
          },
          "429": {
            "description": "Rate limited.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RateLimitError"
                }
              }
            }
          }
        }
      }
    },
    "/openapi.json": {
      "get": {
        "operationId": "getOpenApiDocument",
        "tags": [
          "metadata"
        ],
        "summary": "This OpenAPI 3.1 document.",
        "responses": {
          "200": {
            "description": "OpenAPI document.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true
                }
              }
            }
          }
        }
      }
    },
    "/healthz": {
      "get": {
        "operationId": "getHealth",
        "tags": [
          "ops"
        ],
        "summary": "Liveness probe.",
        "responses": {
          "200": {
            "description": "Plain text 'ok'.",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string",
                  "const": "ok\n"
                }
              }
            }
          }
        }
      }
    },
    "/get_info": {
      "get": {
        "operationId": "nodeGetInfo",
        "tags": [
          "node"
        ],
        "summary": "monerod get_info on node.xmr.pub.",
        "servers": [
          {
            "url": "https://node.xmr.pub"
          }
        ],
        "responses": {
          "200": {
            "description": "Flat JSON.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MonerodGetInfo"
                }
              }
            }
          },
          "429": {
            "description": "Rate limited (10 req/s per client IP, burst 20, 8 concurrent JSON connections; binary sync endpoints are 1 concurrent connection and 32 KB/s after the first 1 MB; 4 MB/s for other responses after 1 MB)."
          }
        }
      }
    },
    "/json_rpc": {
      "post": {
        "operationId": "nodeJsonRpc",
        "tags": [
          "node"
        ],
        "summary": "monerod JSON-RPC on node.xmr.pub.",
        "servers": [
          {
            "url": "https://node.xmr.pub"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "jsonrpc",
                  "id",
                  "method"
                ],
                "properties": {
                  "jsonrpc": {
                    "type": "string",
                    "const": "2.0"
                  },
                  "id": {
                    "type": [
                      "string",
                      "number"
                    ]
                  },
                  "method": {
                    "type": "string",
                    "examples": [
                      "get_info"
                    ]
                  },
                  "params": {
                    "type": "object",
                    "additionalProperties": true
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "JSON-RPC envelope.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true
                }
              }
            }
          },
          "429": {
            "description": "Rate limited."
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "MonerodGetInfo": {
        "type": "object",
        "additionalProperties": true,
        "description": "Subset of monerod get_info fields that clients commonly rely on. Restricted-RPC nodes may omit or zero some fields (e.g. peer counts).",
        "properties": {
          "height": {
            "type": "integer"
          },
          "target_height": {
            "type": "integer"
          },
          "synchronized": {
            "type": "boolean"
          },
          "busy_syncing": {
            "type": "boolean"
          },
          "status": {
            "type": "string",
            "examples": [
              "OK"
            ]
          },
          "difficulty": {
            "type": "integer"
          },
          "tx_pool_size": {
            "type": "integer"
          },
          "database_size": {
            "type": "integer"
          },
          "nettype": {
            "type": "string",
            "examples": [
              "mainnet"
            ]
          },
          "version": {
            "type": "string"
          }
        }
      },
      "SiteMetadata": {
        "type": "object",
        "additionalProperties": true,
        "description": "Machine-readable description of xmr.pub: services, endpoints, policies."
      },
      "RateLimitError": {
        "type": "object",
        "required": [
          "error",
          "message"
        ],
        "properties": {
          "error": {
            "type": "string",
            "const": "rate_limited"
          },
          "message": {
            "type": "string"
          }
        }
      }
    }
  },
  "x-onion": "/onion3/gpprcwwlc2c5lahjjfluii3jaanti2ss2afpqxpmebwx3dctper2moad:18089"
}
