List all trading pairs on the decentralized exchange
curl --request POST \
--url https://tron-mainnet.core.chainstack.com/95e61622bf6a8af293978377718e3b77/wallet/listexchanges \
--header 'Content-Type: application/json' \
--data '
{
"visible": true
}
'import requests
url = "https://tron-mainnet.core.chainstack.com/95e61622bf6a8af293978377718e3b77/wallet/listexchanges"
payload = { "visible": True }
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({visible: true})
};
fetch('https://tron-mainnet.core.chainstack.com/95e61622bf6a8af293978377718e3b77/wallet/listexchanges', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://tron-mainnet.core.chainstack.com/95e61622bf6a8af293978377718e3b77/wallet/listexchanges",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'visible' => true
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://tron-mainnet.core.chainstack.com/95e61622bf6a8af293978377718e3b77/wallet/listexchanges"
payload := strings.NewReader("{\n \"visible\": true\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://tron-mainnet.core.chainstack.com/95e61622bf6a8af293978377718e3b77/wallet/listexchanges")
.header("Content-Type", "application/json")
.body("{\n \"visible\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://tron-mainnet.core.chainstack.com/95e61622bf6a8af293978377718e3b77/wallet/listexchanges")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"visible\": true\n}"
response = http.request(request)
puts response.read_body{
"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"
}
]
}{
"Error": "Invalid request format"
}TRON node API
wallet/listexchanges | TRON
TRON API method that retrieves a list of all trading pairs available on the TRON decentralized exchange. This method does not require any parameters.
POST
/
95e61622bf6a8af293978377718e3b77
/
wallet
/
listexchanges
List all trading pairs on the decentralized exchange
curl --request POST \
--url https://tron-mainnet.core.chainstack.com/95e61622bf6a8af293978377718e3b77/wallet/listexchanges \
--header 'Content-Type: application/json' \
--data '
{
"visible": true
}
'import requests
url = "https://tron-mainnet.core.chainstack.com/95e61622bf6a8af293978377718e3b77/wallet/listexchanges"
payload = { "visible": True }
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({visible: true})
};
fetch('https://tron-mainnet.core.chainstack.com/95e61622bf6a8af293978377718e3b77/wallet/listexchanges', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://tron-mainnet.core.chainstack.com/95e61622bf6a8af293978377718e3b77/wallet/listexchanges",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'visible' => true
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://tron-mainnet.core.chainstack.com/95e61622bf6a8af293978377718e3b77/wallet/listexchanges"
payload := strings.NewReader("{\n \"visible\": true\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://tron-mainnet.core.chainstack.com/95e61622bf6a8af293978377718e3b77/wallet/listexchanges")
.header("Content-Type", "application/json")
.body("{\n \"visible\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://tron-mainnet.core.chainstack.com/95e61622bf6a8af293978377718e3b77/wallet/listexchanges")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"visible\": true\n}"
response = http.request(request)
puts response.read_body{
"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"
}
]
}{
"Error": "Invalid request format"
}TRON API method that retrieves a list of all trading pairs available on the TRON decentralized exchange.
Get your own node endpoint todayStart for free and get your app to production levels immediately. No credit card required.You can sign up with your GitHub, X, Google, or Microsoft account.
Parameters
This method does not require any parameters.Response
Returns an array of exchange objects, each containing: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 token
Use case
Thewallet/listexchanges method is used for:
- Displaying all available trading pairs on decentralized exchange interfaces
- Market discovery and analysis of available token pairs
- Building exchange aggregators that need to know all active pairs
- Monitoring liquidity pools and their current token balances
Last modified on June 22, 2026
Was this page helpful?