SUN 到能源价格 API?

问题描述 投票:0回答:1

我知道 1 能量 = 420 SUN,但找不到任何地方可以获得这个值。或者这个值只是一个静态常量,我必须手动监控?

blockchain tron tronweb tronpy
1个回答
0
投票

找到了!

https://developers.tron.network/reference/getenergyprices

此方法以“timestamp:price_in_sun”格式返回每 1 种能量的价格字符串。所以只需要用“,”分割字符串,获取最新的元素并用“:”分割它并从中获取实际价格。

© www.soinside.com 2019 - 2024. All rights reserved.