getReward - Tron
getReward. Returns the unwithdrawn voting reward balance for an account.
getReward - tron [Value: 20CU]
Returns the unwithdrawn voting reward balance for an account.
Use cases
- Also available as GET
- Show a voter how much reward they've accumulated before calling withdrawbalance
Constraints
- Reflects rewards up to the last completed maintenance cycle, not real-time accrual
- Also available under /walletsolidity/ for confirmed (solidified) data instead of the latest state
Unlock Access to 100+ chains
Boost your app's speed and reliability with dRPC - get your access API key
Language
Request
Examples
curl --request POST \
--url https://lb.drpc.live/tron/{API-KEY}/wallet/getReward \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--data '{"address": "TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g", "visible": true}'Response
200
{
"reward": 5340000
}Request params
idinteger
jsonrpcstring
methodstring
object
addressstring
The account address to query
visibleboolean
When true, addresses are base58check strings; when false (default), hex strings
int64_as_stringboolean
GET only; when true, returns reward as a JSON string
Response
200
Returns the unwithdrawn voting reward balance for an account.Response params
object
rewardinteger
Unwithdrawn voting reward balance, in sun