# AGENTS.md — operating xmr.pub as an agent

> This page is written for autonomous agents as much as for humans. If you can read HTTPS
> JSON, you can use everything here without an account, an API key, or a browser.
> Machine-readable summary: https://xmr.pub/api/v1/site.json · contract:
> https://xmr.pub/openapi.json · long context: https://xmr.pub/llms-full.txt

## TL;DR

```bash
curl -s https://xmr.pub/status.json | jq '{height,synchronized}'
curl -s https://xmr.pub/api/v1/site.json | jq .
curl -s https://xmr.pub/openapi.json | jq '.info'
```

Two live services (no auth, read-only):

| # | Service | Use it via |
|---|---|---|
| 01 | Public Monero node | `https://node.xmr.pub/` (HTTPS 443, restricted RPC) |
| 02 | Rendezvous node (peer discovery) | multiaddr `/dns4/rendezvous.xmr.pub/tcp/9939/p2p/12D3KooWEtn…` |

## Endpoint map

| Method | Path | Content-Type | Purpose |
|---|---|---|---|
| GET | `/` | text/html | human landing page |
| GET | `/` (Accept: application/json) | application/json | same as `/api/v1/site.json` |
| GET | `/` (Accept: text/markdown) | text/markdown | same as `/index.md` |
| GET | `/status.json` | application/json | live node `get_info` (height, synced, difficulty, tx pool) |
| GET | `/api/v1/site.json` | application/json | services, endpoints, policies as data |
| GET | `/openapi.json` | application/json | OpenAPI 3.1 contract |
| GET | `/index.md` | text/markdown | Markdown mirror of the landing page |
| GET | `/llms.txt` | text/plain | short LLM context index |
| GET | `/llms-full.txt` | text/plain | long LLM context |
| GET | `/healthz` | text/plain | `ok` |
| GET | `/robots.txt` | text/plain | crawler policy (AI crawlers explicitly allowed) |
| GET | `/sitemap.xml` | application/xml | URL list |
| GET | `/.well-known/security.txt` | text/plain | security contact (RFC 9116) |
| GET/POST | `/api/<method>` | application/json | restricted-RPC passthrough (method allow-list below) |

Available HTTP paths (read-only + wallet sync, verified live): `get_info`, `getheight`,
`json_rpc`, `get_transactions` (alias `gettransactions`), `is_key_image_spent`,
`get_blocks.bin` (alias `getblocks.bin`), `get_hashes.bin` (alias `gethashes.bin`),
`get_blocks_by_height.bin` (alias `getblocks_by_height.bin`). Anything else: `403` by design.

Method-style names that do **not** exist as HTTP paths (`get_fee_estimate`, `get_version`,
`get_block_count`, `get_last_block_header`, `get_block_headers_range`,
`get_block_header_by_hash`, `get_output_distribution`) must go through
`POST /json_rpc` (same restricted surface); calling them as bare paths returns monerod `404`.

```bash
# fee estimate via JSON-RPC (the /get_fee_estimate path does not exist on monerod)
curl -s https://node.xmr.pub/json_rpc -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":"0","method":"get_fee_estimate"}'
```

The public node itself serves the same restricted-RPC paths on `https://node.xmr.pub/`
(port 443). Any other path returns `403` — that is the design, not an error state.

## Using the node from a wallet or a script

- Custom node: host `node.xmr.pub`, port `443`, TLS/SSL **on**, no credentials.
- Wallets that only accept an IP:port will not work — use the hostname (Cloudflare-proxied).
- Tor: `/onion3/gpprcwwlc2c5lahjjfluii3jaanti2ss2afpqxpmebwx3dctper2moad:18089` (hidden service published from the operator VPS; use torsocks or a Monero wallet with Tor support)
- `get_info` returns flat JSON from `/status.json` and `/get_info`
  (`{"height":…,"synchronized":true,…}`); over `/json_rpc` it is wrapped in
  `{"result":{…},"id":…,"jsonrpc":"2.0"}`.

### Examples

```bash
# node height + sync
curl -s https://node.xmr.pub/get_info | jq '.height, .synchronized'

# JSON-RPC envelope
curl -s https://node.xmr.pub/json_rpc -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":"0","method":"get_info"}' | jq '.result.height'

# CORS is open on machine endpoints, so browser-based agents can fetch directly
fetch('https://xmr.pub/status.json').then(r => r.json()).then(d => console.log(d.height));
```

## Discovery: rendezvous node

- Clearnet: `/dns4/rendezvous.xmr.pub/tcp/9939/p2p/12D3KooWEtnbnBDG9owAfBuZz3dU6Wz3T6VdWTZFBpv3fJWYtSKV`
- Tor: `/onion3/itqgysntnzc75lvs3pmpjuwth2d7h4ymenuf6zdwrwwfoktc2djmhgid:9939/p2p/12D3KooWEtnbnBDG9owAfBuZz3dU6Wz3T6VdWTZFBpv3fJWYtSKV`
- Add the multiaddr as a rendezvous point in a compatible libp2p client. Peers register and query there. Default-list PR: https://github.com/eigenwallet/core/pull/1255


## Rules for agents

1. **No auth exists.** Do not probe for credentials, admin RPC, wallet RPC or `.env` files.
2. **Read-only.** xmr.pub cannot sign transactions, hold funds or expose wallet data.
3. **No MCP endpoint** on this host; do not look for `/mcp` (it returns 404 by design).
4. **Rate limits / quota:** `/api/*` 60 req/min (burst 20) → HTTP 429 with a JSON body;
   node RPC 10 req/s (burst 20), 8 concurrent connections, 64 KiB request body,
   responses throttled to 4 MB/s after the first 1 MB.
   **Binary wallet-sync endpoints** (`getblocks.bin`, `gethashes.bin`,
   `get_blocks_by_height.bin` and aliases) are limited to **1 concurrent connection
   per client IP and 32 KB/s** (throttled, not an error). Paid customers get a
   separate dedicated service (no shared-node throttle); contact `admin@xmr.pub`.
   Back off and cache.
5. **No mining/stratum** against `node.xmr.pub`; it is an RPC endpoint only.
6. **Indexing is allowed** for assistants and search; please do not republish the site as your
   own and do not attribute quotes/inventory to us.
7. Report abuse or a vulnerability via `/.well-known/security.txt`.

## Contact

- Security: https://xmr.pub/.well-known/security.txt
- Everything else: open an issue on the operator's repository, or use the address listed in
  `security.txt`.

## Machine-readable manifest

- https://xmr.pub/api/v1/site.json — services, endpoints, policies, content negotiation
- https://xmr.pub/openapi.json — OpenAPI 3.1 (paths, parameters, error codes)
- https://xmr.pub/llms.txt / https://xmr.pub/llms-full.txt — prose context

## Commercial services

- Dedicated/shared Monero nodes from **0.03 XMR/month**; full node + Tor/I2P and one-off deployments on request.
- Page: https://xmr.pub/services · Offers JSON: https://xmr.pub/api/v1/services.json
- Contact: admin@xmr.pub · Operator: Morpheus Wang
- Swap links on the landing page are affiliate links (may earn a commission); not endorsements.

## Agent API credits (private beta)

- Prepaid XMR credits for agents: https://xmr.pub/credits
- Status: internal wallet/ledger/API working; public endpoints not open yet.
