API Documentation
Get Router Data
GET
/
getRouterData
This endpoint does not require any parameters, simply send a GET request.
Example request:
Successful response:
Response field explanations:
success
: Whether the request was successfuldata.routerAddress
: Router contract addressdata.factoryAddress
: Factory contract addressdata.platformFee
: Platform transaction fee rate (e.g., 0.003 represents 0.3%)data.swapGasEstimate
: Estimated gas consumption for token swappingdata.supportedTokens
: List of tokens supported by the routeraddress
: Token contract addresssymbol
: Token symboldecimals
: 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.