API Documentation
Complete API reference for the AITBC platform. All APIs are RESTful and use JSON for request/response format.
Client API
Endpoints for job submission, status checking, and receipt retrieval.
Submit a new AI compute job
Get job status and results
Get computation receipt
Miner API
Endpoints for miner registration, job assignment, and result submission.
Register as a miner
Send miner heartbeat
Submit job results
Admin API
Administrative endpoints for system management and monitoring.
List all registered miners
List all jobs in system
Get system statistics
Marketplace API
Endpoints for the compute marketplace and trading functionality.
List available compute offers
Create a new compute offer
Execute a trade
Exchange API
Endpoints for token exchange and trading operations.
Get current ticker prices
Get order book
Place a new order
Explorer API
Endpoints for blockchain exploration and data retrieval.
List recent blocks
List recent transactions
Get address details
Authentication
All API requests must include an API key in the header:
X-Api-Key: your_api_key_here
Getting API Keys
- Clients: Register through the web interface or contact support
- Miners: Generated upon registration
- Admin: Pre-configured secure keys
Base URL
All API endpoints are relative to the base URL:
https://aitbc.bubuit.net/api
For development:
http://localhost:18000
WebSocket API
Real-time updates are available through WebSocket connections:
ws://aitbc.bubuit.net:18001/ws
Subscribe to events:
{
"method": "subscribe",
"params": ["job_updates", "miner_heartbeats"]
}