查询出块和投票奖励
用法
tronWeb.trx.getReward(address)
参数
String(HexString or Base58)
返回
Number
示例
//参数 Base58
>tronWeb.trx.getReward("TTSFjEG3Lu9WkHdp4JrWYhbGP6K1REqnGQ").then(result=>console.log(result))
Promise { <pending> }
> 0
//参数 HexString
>tronWeb.trx.getReward("41BF97A54F4B829C4E9253B26024B1829E1A3B1120").then(result=>console.log(result))
Promise { <pending> }
> 0