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"
}Retrieves detailed information about a specific exchange trading pair by its unique identifier
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"
}id — the unique exchange ID to queryexchange_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/getexchangebyid method is used for:
Successful response with exchange details
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?