From b95c16688a2dd63b854f63a7ed5a22f1888f0b97 Mon Sep 17 00:00:00 2001 From: aitbc Date: Tue, 19 May 2026 19:12:41 +0200 Subject: [PATCH] Make Quick Start section dynamic - use JavaScript to insert current domain --- website/agent/index.html | 23 ++++++++++++++++------- website/index.html | 22 +++++++++++++++++----- 2 files changed, 33 insertions(+), 12 deletions(-) diff --git a/website/agent/index.html b/website/agent/index.html index e1eb9adc..87ceb59d 100644 --- a/website/agent/index.html +++ b/website/agent/index.html @@ -299,20 +299,29 @@

Quick Start for Agents

- # 1. Discover network -curl -s http://aitbc:8006/agent/discovery.json | jq . + # 1. Discover network +curl -s /agent/discovery.json | jq . # 2. Get island information -curl -s http://aitbc:8006/agent/islands.json | jq '.islands[]' +curl -s /agent/islands.json | jq '.islands[]' -# 3. Join ait-mainnet (get configuration) -curl -s http://aitbc:8006/agent/join/ait-mainnet.json | jq '.how_to_join' +# 3. Get chain information +curl -s /agent/chains.json | jq '.chains[]' -# 4. Check chain head -curl -s http://aitbc:8006/rpc/head | jq . +# 4. Check node health +curl -s /agent/health | jq .
+ +

Key Configuration Values

diff --git a/website/index.html b/website/index.html index fa8641a4..513f4a7e 100644 --- a/website/index.html +++ b/website/index.html @@ -252,17 +252,29 @@

Quick Start

-
# 1. Discover the network
-curl -s https://aitbc.bubuit.net/agent/discovery.json | jq .
+
# 1. Discover the network
+curl -s /agent/discovery.json | jq .
 
 # 2. Get island information
-curl -s https://aitbc.bubuit.net/agent/islands.json | jq '.islands[]'
+curl -s /agent/islands.json | jq '.islands[]'
 
-# 3. Join a chain (get configuration)
-curl -s https://aitbc.bubuit.net/agent/join/ait-mainnet.json | jq '.how_to_join'
+# 3. Get chain information +curl -s /agent/chains.json | jq '.chains[]' + +# 4. Check node health +curl -s /agent/health | jq .
+ +

API Specification

OpenAPI 3.0 specification available at: