/chainInfo
The /chainInfo endpoint returns detailed information about a specific blockchain network, including supported routers, liquidity sources, and key token addresses.
Endpoint
GET /api/v1.0/chainInfoParameters
chainId
integer
Yes
Integer ID of the blockchain
apiKey
string
Yes
Your API key
Example Request
curl "https://app.swap-net.xyz/api/v1.0/chainInfo?chainId=1&apiKey=<Your API Key>"Response
Returns detailed information about the specified blockchain network:
chainId: Unique identifier for the blockchain networkname: Human-readable name of the blockchain networkusdTokenAddress: Address of the primary USD-pegged token on this chainwrappedNativeTokenAddress: Address of the wrapped native token (e.g., WETH, WHYPE)routers: Array of available router contracts and their configurations
Router Information
Each router object contains:
name: Router contract unique name (e.g., "swapnet-router", "universal-router", "default-router")liquiditySources: Array of supported liquidity sources for this routerdeployedAddress: Deployed address of the router contracttokenProxyAddress: Address of the token proxy contract (if applicable)hasEncoder: Whether the router has an available encoder for calldata generation
Example Response
Last updated