get_all_pair_infos
Retrieves information about all pairs based on the provided category (Mainnet, Testnet or empty).
Body
categorystringOptionalExample:
"Mainnet", "Testnet" or empty for both.
Mainnet
value_include_gas_feebooleanOptional
Will gas fee be taken within the user input value or not, this flag determine whether the min, max value should include gas fee or not
Responses
0
Successful response
application/json
Responseall of
post
POST /get_all_pair_infos HTTP/1.1
Host:
Content-Type: application/json
Accept: */*
Content-Length: 52
{
"category": "Mainnet",
"value_include_gas_fee": false
}
0
Successful response
{
"data": {
"pair_infos": [
{
"contract_address": "0x321123979adec",
"from_chain_id": "8453",
"from_chain_name": "BaseMainnet",
"from_token_address": "0x7123979adec",
"from_token_decimals": 18,
"max_value": {
"decimals": 18,
"raw_value": "1000000",
"ui_value": "1.2"
},
"min_value": {
"decimals": 18,
"raw_value": "1000000",
"ui_value": "1.2"
},
"to_chain_id": "42161",
"to_chain_name": "ScrollMainnet",
"to_token_address": "0x7123979adec",
"to_token_decimals": 18,
"token_name": "USDC"
}
]
},
"status": {
"code": 1,
"message": "text"
}
}
Last updated
Was this helpful?