Get Coin List
Get information of the supported chains, and the corresponding tokens: for users to choose a swap pair
Request Url: /api/getBaseInfo
API Base Url: https://api-swap.paths.finance
Request Method: POST
Request Parameters:
Field Name
Field Description
Type
Required or not
Notes
Output Parameters:
Field Name
Field Description
Type
tokens
Token Info List
Return to Object while no chain parameter;
Return to Array when there is a chain parameter
quoteSwitch
The price inquiry Switch currently set True
bool
Request Example:
https://api-swap.paths.finance/api/getBaseInfo
Response Example:
// no chain parameter Return
{
"resCode": "100",
"resMsg": "Success",
"data": {
"tokens": {
"ETH": [
{
"symbol": "ETH",
"name": "Ethereum Token",
"address": "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",
"decimals": 18,
"logoURI": "https://swap.swftcoin.com/swft-v3/images/coins/ETH.png",
"isCrossEnable": true
},
{
"symbol": "WETH",
"name": "Wrapped Ether",
"address": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
"decimals": 18,
"logoURI": "https://images.swft.pro/inch1/0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2.png",
"isCrossEnable": true
},
{
"symbol": "LINK",
"name": "ChainLink Token",
"address": "0x514910771af9ca656af840dff83e8264ecf986ca",
"decimals": 18,
"logoURI": "https://images.swft.pro/inch1/0x514910771af9ca656af840dff83e8264ecf986ca.png",
"isCrossEnable": false
}
]
},
"quoteSwitch": true
}
}Postman Call Example

Last updated