Developer Overview
Build on Unit Network using our REST API, WebSocket connections, and Polkadot.js SDK integration.
Welcome Developers
Unit Network is built on Substrate, giving you access to a rich set of blockchain primitives and a familiar Web3 development experience.
Quick Links
| Resource | Description |
|---|---|
| REST API Reference | Authenticate, query assets, oracles, pools & more |
| WebSocket Guide | Real-time blockchain data via Substrate RPC |
| SDK & Integration | Connect with Polkadot.js API |
Architecture at a Glance
Base URLs
| Service | URL |
|---|---|
| REST API | https://api.unit.network |
| WebSocket RPC | wss://mainnet-unit.com:443 |
| Web App | https://app.unit.network |
Authentication
All authenticated API endpoints require a Bearer token obtained via /auth/login:
# Register
curl -X POST https://api.unit.network/auth/register \
-H "Content-Type: application/json" \
-d '{"email": "[email protected]", "password": "securePassword123"}'
# Login
curl -X POST https://api.unit.network/auth/login \
-H "Content-Type: application/json" \
-d '{"email": "[email protected]", "password": "securePassword123"}'
# Use the returned token
curl https://api.unit.network/assets/metadata/0 \
-H "Authorization: Bearer YOUR_TOKEN"
What Can You Build?
- Portfolio trackers — Query token balances, prices, and treasury values
- Trading bots — Execute trades via API with real-time WebSocket price feeds
- Analytics dashboards — Pull pool stats, holder data, and oracle prices
- Community tools — Token gating, airdrop scripts, governance interfaces
- Mobile apps — Full API access for custom mobile experiences
Related Pages
- Architecture Overview — How the blockchain works
- Pallets — Substrate runtime modules
- Tokenomics — Fee structure and distribution