Skip to main content

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

HeaderTypeRequiredDescription
x-api-keystringYesYour API key for authentication
x-secret-keystringYesYour secret key for authentication

Query Parameters

ParameterTypeRequiredDescription
enabledOnlybooleanNoFilter 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

FieldTypeDescription
idstringUnique chain identifier
chainIdnumberEVM chain ID (if applicable)
namestringHuman-readable chain name
symbolstringNative currency symbol
rpcUrlstringRPC endpoint URL
explorerUrlstringBlock explorer URL
isTestnetbooleanWhether this is a testnet
isEnabledbooleanWhether chain is currently enabled
nativeCurrencyobjectNative currency details
supportedTokensarrayList of supported tokens
blockTimenumberAverage block time in seconds
confirmationsRequirednumberRequired confirmations for finality
featuresarraySupported features list
createdAtstringChain creation timestamp
updatedAtstringLast update timestamp

Features

Common feature flags include:

  • travel_rule - Supports Travel Rule compliance
  • smart_contracts - Supports smart contracts
  • erc20_tokens - Supports ERC-20 tokens
  • bep20_tokens - Supports BEP-20 tokens
  • multi_sig - Supports multi-signature wallets
  • memo_support - Supports transaction memos

Use Cases

  • Display available networks in wallet selection
  • Configure transaction routing
  • Validate network compatibility
  • System configuration and monitoring
  • Integration planning