Back to UCX
UCX API Reference
Overview
The UCX API provides programmatic access to our UniChain trading tools and market data. Use this API to integrate UCX features into your own applications.
Base URL:
https://api.ucx.network
Authentication
To access the UCX API, you will need to include your API key in the Authorization header:
Authorization: Bearer YOUR_API_KEY
For API key requests, please contact support@ucx.network
Example Request
Here's how to fetch UCX Token information using the API:
const response = await fetch('https://api.ucx.network/v1/tokens/info', {
method: 'GET',
headers: {
'Authorization': 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json'
},
body: JSON.stringify({
network: 'UniChain',
tokenAddress: '0x1234...5678'
})
});
const data = await response.json();
// Returns token information including:
// - Total Supply: 1,000,000,000
// - Symbol: UCX
// - Decimals: 18
Available Endpoints
GET /v1/tokens/info
Get detailed information about a token on UniChain
GET /v1/pairs/list
List all available trading pairs with ETH pairs
GET /v1/market/price
Get current market prices in ETH
Rate Limits
- 100 requests per minute for authenticated endpoints
- 10 requests per minute for public endpoints
- Rate limit headers are included in all API responses
Need higher rate limits? Contact support@ucx.network for enterprise API access.