--- title: getEnergyPrices --- # getEnergyPrices Query historical energy unit price. ## Usage ```js await tronWeb.trx.getEnergyPrices(); ``` ## Return string - All historical energy unit price information. Each unit price change is separated by a comma. Before the colon is the millisecond timestamp, and after the colon is the energy unit price in sun. ## Example ```js //Example 1 await tronWeb.trx.getEnergyPrices(); // output-start "0:100" // output-end ```