--- title: getExchangeByID --- # getExchangeByID Query Exchange by id ## Usage ```js tronWeb.trx.getExchangeByID(exchange_id); ``` ## Parameters Number - Exchange ID. ## Return Object - Exchange information, see the example below. ## Example ```js await tronWeb.trx.getExchangeByID(1); // output-start { exchange_id: 1, creator_address: '410ca7c49aa44d26aabfe7f594c645cf9f17a4ff70', create_time: 1575754887000, first_token_id: '31303030303033', first_token_balance: 999902, second_token_id: '5f', second_token_balance: 200020000000 } // output-end ```