Files
aitbc/dev/cli/mock_server_8002.py
oib 15427c96c0 chore: update file permissions to executable across repository
- Change file mode from 644 to 755 for all project files
- Add chain_id parameter to get_balance RPC endpoint with default "ait-devnet"
- Rename Miner.extra_meta_data to extra_metadata for consistency
2026-03-06 22:17:54 +01:00

18 lines
383 B
Python
Executable File

import uvicorn
from fastapi import FastAPI
app = FastAPI()
@app.get('/blockchain/status')
async def blockchain_status():
return {
'status': 'connected',
'height': 12345,
'hash': '0x1234567890abcdef',
'timestamp': '2026-03-04T17:10:00Z',
'tx_count': 678
}
if __name__ == '__main__':
uvicorn.run(app, host='127.0.0.1', port=8002)