getBrokerage - Tron
getBrokerage. Returns the brokerage (commission) ratio a witness keeps from voting rewards.
getBrokerage - tron [Value: 20CU]
Returns the brokerage (commission) ratio a witness keeps from voting rewards.
Use cases
- Also available as GET
- Compare commission rates across Super Representatives before voting
Constraints
- Defaults to 20% for witnesses that have never explicitly set a brokerage ratio
- 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/getBrokerage \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--data '{"address": "TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g", "visible": true}'Response
200
{
"brokerage": 20
}Request params
idinteger
jsonrpcstring
methodstring
object
addressstring
The witness account's address
visibleboolean
When true, addresses are base58check strings; when false (default), hex strings
Response
200
Returns the brokerage (commission) ratio a witness keeps from voting rewards.Response params
object
brokerageinteger
Percentage (0-100) of voting rewards the witness keeps as commission