Skip to main content

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.


ResourceDescription
REST API ReferenceAuthenticate, query assets, oracles, pools & more
WebSocket GuideReal-time blockchain data via Substrate RPC
SDK & IntegrationConnect with Polkadot.js API

Architecture at a Glance


Base URLs

ServiceURL
REST APIhttps://api.unit.network
WebSocket RPCwss://mainnet-unit.com:443
Web Apphttps://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