POST
/
95e61622bf6a8af293978377718e3b77
/
wallet
/
getexchangebyid
Get exchange pair details by ID
curl --request POST \
  --url https://tron-mainnet.core.chainstack.com/95e61622bf6a8af293978377718e3b77/wallet/getexchangebyid \
  --header 'Content-Type: application/json' \
  --data '{
  "id": 1,
  "visible": true
}'
{
  "exchange_id": 1,
  "creator_address": "TLyqzVGLV1srkB7dToTAEqgDSfPtXRJZYH",
  "create_time": 1672531200000,
  "first_token_id": "1000001",
  "first_token_balance": "1000000000000",
  "second_token_id": "_",
  "second_token_balance": "5000000000"
}
TRON API method that retrieves detailed information about a specific exchange trading pair by its unique identifier.
Get you 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

  • id — the unique exchange ID to query

Response

Returns an exchange object containing:
  • exchange_id — unique identifier for the exchange pair
  • creator_address — address that created the exchange pair
  • create_time — timestamp when the exchange was created
  • first_token_id — token ID of the first token in the pair
  • first_token_balance — current balance of the first token
  • second_token_id — token ID of the second token in the pair
  • second_token_balance — current balance of the second token

Use case

The wallet/getexchangebyid method is used for:
  • Retrieving specific exchange pair details for trading interfaces
  • Checking current liquidity balances before executing trades
  • Monitoring individual exchange pair performance and metrics
  • Validating exchange pair existence before performing operations

Body

application/json
id
integer
required

The unique exchange ID to query

visible
boolean
default:false

Whether to return human-readable addresses

Response

Successful response with exchange details

exchange_id
integer

Unique identifier for the exchange pair

creator_address
string

Address that created the exchange pair

create_time
integer

Timestamp when the exchange was created

first_token_id
string

Token ID of the first token in the pair

first_token_balance
string

Current balance of the first token

second_token_id
string

Token ID of the second token in the pair

second_token_balance
string

Current balance of the second token