updateBrokerage - Tron
updateBrokerage. Creates a transaction to update the brokerage ratio a witness keeps from voting rewards.
updateBrokerage - tron [Value: 20CU]
Creates a transaction to update the brokerage ratio a witness keeps from voting rewards.
Use cases
- Adjust the commission a Super Representative keeps from its voters' rewards
Constraints
- Can only be changed once per 24-hour period
- Only the witness's own owner_address can update its brokerage ratio
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/updateBrokerage \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--data '{"owner_address": "TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g", "brokerage": 1, "visible": true}'Response
200
{
"visible": false,
"txID": "63732aa3bc1e95227af2d09782d430f7032ee9500bf035d4fd82001f50744745",
"raw_data": {
"contract": [
{
"parameter": {
"value": {
"brokerage": 20,
"owner_address": "419c7c7049d26108be0dcb5f78479c6ff27ba101d1"
},
"type_url": "type.googleapis.com/protocol.UpdateBrokerageContract"
},
"type": "UpdateBrokerageContract"
}
],
"ref_block_bytes": "27c9",
"ref_block_hash": "c22bba19ac9d6cf3",
"expiration": 1777446471000,
"timestamp": 1777446411781
},
"raw_data_hex": "0a0227c92208c22bba19ac9d6cf340d88ac3c0dd335a55083112510a34747970652e676f6f676c65617069732e636f6d2f70726f746f636f6c2e55706461746542726f6b6572616765436f6e747261637412190a15419c7c7049d26108be0dcb5f78479c6ff27ba101d110147085bcbfc0dd33"
}Request params
idinteger
jsonrpcstring
methodstring
object
owner_addressstring
[Required] The witness account's address
brokerageinteger
New brokerage percentage (0-100)
visibleboolean
When true, addresses are base58check strings; when false (default), hex strings
Response
200
Creates a transaction to update the brokerage ratio a witness keeps from voting rewards.Response params
object
visibleboolean
[Optional] Indicates whether addresses in this transaction are represented in base58 format (true) or hex format (false).
txIDstring
The unique transaction hash (transaction ID), computed as the SHA256 of raw_data.
raw_dataobject
The unsigned transaction body containing the contract instruction and blockchain reference data.
object
contractarray_of_objects
The list of contract instructions to be executed by this transaction.
object
parameterobject
The typed payload describing the specific contract call being made.
object
valueobject
The decoded fields of the contract — here, a request by a witness to change their brokerage (commission) rate.
object
brokerageinteger
[Required] The new brokerage percentage the witness will keep from block-production rewards before distributing the remainder to voters.
owner_addressstring
The address of the witness updating their brokerage rate, in hex format.
type_urlstring
The fully qualified protobuf type identifier describing which contract schema `value` should be decoded with.
typestring
The human-readable name of the contract type being executed (here, UpdateBrokerageContract).
ref_block_bytesstring
The last two bytes of the reference block number, used for transaction expiration and replay protection.
ref_block_hashstring
The last eight bytes of the reference block's hash, paired with ref_block_bytes for replay protection.
expirationinteger
Unix timestamp, in ms, after which this transaction is no longer valid and will be rejected by the network.
timestampinteger
Unix timestamp, in ms, marking when the transaction was created/signed by the client.
raw_data_hexstring
The hex-encoded serialized bytes of raw_data, used as the actual payload to sign and broadcast.