Get All Chains
Retrieve a complete list of all supported blockchain networks in the TRP Continuum system.
Endpoint
GET /chains
Authentication
Requires API key and secret key authentication.
Headers
| Header | Type | Required | Description |
|---|---|---|---|
x-api-key | string | Yes | Your API key for authentication |
x-secret-key | string | Yes | Your secret key for authentication |
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
enabledOnly | boolean | No | Filter to only enabled chains (default: false) |
Example Request
curl -X GET "{{baseUrl}}/chains?enabledOnly=true" \
-H "x-api-key: {your-api-key}" \
-H "x-secret-key: {your-secret-key}"
Response
Success (200 OK)
{
"success": true,
"data": [
{
"id": "abstract",
"name": "Abstract",
"enabled": true
},
{
"id": "acala",
"name": "Acala",
"enabled": true
},
{
"id": "algorand",
"name": "Algorand",
"enabled": true
},
{
"id": "arbitrum-one",
"name": "Arbitrum One",
"enabled": true
},
{
"id": "avalanche",
"name": "Avalanche",
"enabled": true
},
{
"id": "base",
"name": "Base",
"enabled": true
},
{
"id": "binance-smart-chain",
"name": "Binance Smart Chain",
"enabled": true
},
{
"id": "bitcoin",
"name": "Bitcoin",
"enabled": true
},
{
"id": "ethereum",
"name": "Ethereum",
"enabled": true
},
{
"id": "polygon-pos",
"name": "Polygon",
"enabled": true
},
{
"id": "solana",
"name": "Solana",
"enabled": true
}
]
}
Error (401 Unauthorized)
{
"success": false,
"error": "Authentication required",
"code": "AUTH_REQUIRED"
}
Error (403 Forbidden)
{
"success": false,
"error": "Insufficient permissions to view chains",
"code": "INSUFFICIENT_PERMISSIONS"
}
Error (500 Internal Server Error)
{
"success": false,
"error": "Internal server error while retrieving chains",
"code": "INTERNAL_ERROR"
}
Chain Object Properties
| Field | Type | Description |
|---|---|---|
id | string | Unique chain identifier |
chainId | number | EVM chain ID (if applicable) |
name | string | Human-readable chain name |
symbol | string | Native currency symbol |
rpcUrl | string | RPC endpoint URL |
explorerUrl | string | Block explorer URL |
isTestnet | boolean | Whether this is a testnet |
isEnabled | boolean | Whether chain is currently enabled |
nativeCurrency | object | Native currency details |
supportedTokens | array | List of supported tokens |
blockTime | number | Average block time in seconds |
confirmationsRequired | number | Required confirmations for finality |
features | array | Supported features list |
createdAt | string | Chain creation timestamp |
updatedAt | string | Last update timestamp |
Features
Common feature flags include:
travel_rule- Supports Travel Rule compliancesmart_contracts- Supports smart contractserc20_tokens- Supports ERC-20 tokensbep20_tokens- Supports BEP-20 tokensmulti_sig- Supports multi-signature walletsmemo_support- Supports transaction memos
Use Cases
- Display available networks in wallet selection
- Configure transaction routing
- Validate network compatibility
- System configuration and monitoring
- Integration planning