curl --request POST \
--url https://tron-mainnet.core.chainstack.com/95e61622bf6a8af293978377718e3b77/wallet/listexchanges \
--header 'Content-Type: application/json' \
--data '
{
"visible": true
}
'{
"exchanges": [
{
"exchange_id": 1,
"creator_address": "TLyqzVGLV1srkB7dToTAEqgDSfPtXRJZYH",
"create_time": 1672531200000,
"first_token_id": "1000001",
"first_token_balance": "1000000000000",
"second_token_id": "_",
"second_token_balance": "5000000000"
},
{
"exchange_id": 2,
"creator_address": "TKcEU8ekq2ZoFzLSGBSC2xps5c4yssLYVB",
"create_time": 1672617600000,
"first_token_id": "1000002",
"first_token_balance": "500000000000",
"second_token_id": "1000001",
"second_token_balance": "2000000000000"
}
]
}Retrieves a list of all trading pairs available on the TRON decentralized exchange
curl --request POST \
--url https://tron-mainnet.core.chainstack.com/95e61622bf6a8af293978377718e3b77/wallet/listexchanges \
--header 'Content-Type: application/json' \
--data '
{
"visible": true
}
'{
"exchanges": [
{
"exchange_id": 1,
"creator_address": "TLyqzVGLV1srkB7dToTAEqgDSfPtXRJZYH",
"create_time": 1672531200000,
"first_token_id": "1000001",
"first_token_balance": "1000000000000",
"second_token_id": "_",
"second_token_balance": "5000000000"
},
{
"exchange_id": 2,
"creator_address": "TKcEU8ekq2ZoFzLSGBSC2xps5c4yssLYVB",
"create_time": 1672617600000,
"first_token_id": "1000002",
"first_token_balance": "500000000000",
"second_token_id": "1000001",
"second_token_balance": "2000000000000"
}
]
}exchange_id — unique identifier for the exchange paircreator_address — address that created the exchange paircreate_time — timestamp when the exchange was createdfirst_token_id — token ID of the first token in the pairfirst_token_balance — current balance of the first tokensecond_token_id — token ID of the second token in the pairsecond_token_balance — current balance of the second tokenwallet/listexchanges method is used for:
Whether to return human-readable addresses
Successful response with list of exchanges
Show child attributes
Unique identifier for the exchange pair
Address that created the exchange pair
Timestamp when the exchange was created
Token ID of the first token in the pair
Current balance of the first token
Token ID of the second token in the pair
Current balance of the second token
Was this page helpful?