diff --git a/apps/blockchain-explorer/main.py b/apps/blockchain-explorer/main.py index d4307d0a..7bf085fc 100755 --- a/apps/blockchain-explorer/main.py +++ b/apps/blockchain-explorer/main.py @@ -19,8 +19,13 @@ import uvicorn app = FastAPI(title="AITBC Blockchain Explorer", version="2.0.0") -# Configuration -BLOCKCHAIN_RPC_URL = "http://localhost:8082" # Local blockchain node +# Configuration - Multi-chain support +BLOCKCHAIN_RPC_URLS = { + "ait-devnet": "http://localhost:8025", + "ait-testnet": "http://localhost:8026", + "ait-mainnet": "http://aitbc.keisanki.net:8082" +} +DEFAULT_CHAIN = "ait-devnet" EXTERNAL_RPC_URL = "http://aitbc.keisanki.net:8082" # External access # Pydantic models for API @@ -72,7 +77,11 @@ HTML_TEMPLATE = r"""

AITBC Blockchain Explorer

- Network: ait-devnet +