GET
/
getRouterData

This endpoint does not require any parameters, simply send a GET request.

Example request:

GET /getRouterData

Successful response:

{
  "success": true,
  "data": {
    "routerAddress": "0x1234567890abcdef",
    "factoryAddress": "0xabcdef1234567890",
    "platformFee": 0.003,
    "swapGasEstimate": 100000,
    "supportedTokens": [
      {
        "address": "0x1234567890",
        "symbol": "TON",
        "decimals": 18
      },
      {
        "address": "0x0987654321",
        "symbol": "USDT",
        "decimals": 6
      }
    ]
  }
}

Response field explanations:

  • success: Whether the request was successful
  • data.routerAddress: Router contract address
  • data.factoryAddress: Factory contract address
  • data.platformFee: Platform transaction fee rate (e.g., 0.003 represents 0.3%)
  • data.swapGasEstimate: Estimated gas consumption for token swapping
  • data.supportedTokens: List of tokens supported by the router
    • address: Token contract address
    • symbol: Token symbol
    • decimals: Token decimal places

By calling the getRouterData endpoint, you can obtain the router-related data of the ONTON Finance platform, including the router contract address, factory contract address, platform transaction fee rate, estimated gas consumption for token swapping, and list of supported tokens. This data can help you understand the platform’s basic configuration and supported tokens for subsequent interactions and development.