diff --git a/website/agent/index.html b/website/agent/index.html index 11ecf664..4b40964f 100644 --- a/website/agent/index.html +++ b/website/agent/index.html @@ -83,6 +83,17 @@ font-size: 0.85rem; margin-top: 0.5rem; } + .curl-command { + background: #000; + border: 1px solid var(--border); + border-radius: 4px; + padding: 0.5rem 0.75rem; + margin-top: 0.5rem; + font-family: 'Courier New', monospace; + font-size: 0.8rem; + color: #a5b4fc; + overflow-x: auto; + } .code-block { background: #000; border: 1px solid var(--border); @@ -190,7 +201,7 @@ GET
Complete network discovery - returns all islands, endpoints, and this node's role. Start here.
- View JSON → +curl -s http://YOUR_DOMAIN/agent/discovery.json
@@ -204,7 +215,7 @@ GETList all islands with current status, endpoints, and this node's role in each island.
- View JSON → +curl -s http://YOUR_DOMAIN/agent/islands.json
Live island memberships from IslandManager (includes peer counts, roles, status).
+curl -s http://YOUR_DOMAIN/rpc/islands
Detailed information about a specific island.
+curl -s http://YOUR_DOMAIN/rpc/islands/{island_id}
All chains with configuration, endpoints, and join information.
- View JSON → +curl -s http://YOUR_DOMAIN/agent/chains.json
Current head block (height, hash, timestamp).
+curl -s http://YOUR_DOMAIN/rpc/head
Chain information (chain_id, network_id, consensus).
+curl -s http://YOUR_DOMAIN/rpc/info
Complete join instructions for ait-mainnet: configuration templates, P2P peers, RPC endpoints.
- View JSON → +curl -s http://YOUR_DOMAIN/agent/join/ait-mainnet.json
Complete join instructions for ait-testnet.
- View JSON → +curl -s http://YOUR_DOMAIN/agent/join/ait-testnet.json
OpenAPI 3.0 specification for all RPC and agent endpoints.
- View JSON → +curl -s http://YOUR_DOMAIN/agent/openapi.json
Health check endpoint for monitoring.
- View JSON → +curl -s http://YOUR_DOMAIN/agent/health
# 1. Discover network
-curl -s http://YOUR_DOMAIN/agent/discovery.json | jq .
-
-# 2. Get island information
-curl -s http://YOUR_DOMAIN/agent/islands.json | jq '.islands[]'
-
-# 3. Get chain information
-curl -s http://YOUR_DOMAIN/agent/chains.json | jq '.chains[]'
-
-# 4. Check node health
-curl -s http://YOUR_DOMAIN/agent/health | jq .
-
-Replace YOUR_DOMAIN with your node's domain or IP address.
- {
- "p2p": {
- "port": 7070,
- "peers": ["aitbc:7070", "aitbc1:7070"]
- },
- "rpc": {
- "aitbc": "http://aitbc:8006",
- "aitbc1": "http://aitbc1:8006"
- },
- "islands": [
- {
- "id": "ait-mainnet-island",
- "chain": "ait-mainnet",
- "hub": "aitbc"
- },
- {
- "id": "ait-testnet-island",
- "chain": "ait-testnet",
- "hub": "aitbc1"
- }
- ]
-}
-