Create an unsigned transaction to update the First validator brokerage.
Usage
visionWeb.transactionBuilder.updateBrokerage(brokerage, ownerAddress);
Parameters
Parameter | Description | Type | Default |
---|---|---|---|
brokerage | An integer which defines percentage of the brokerage. | number | - |
ownerAddress | Account address. | string | Default account address |
Returns
Object.
Example
visionWeb.transactionBuilder.updateBrokerage(30);
> {
visible: false,
txID: 'f43ed516c64673f77d9a23429e44541abbcb0d68a5558542ba5c1f9f6032d350',
raw_data: {
contract: [ [Object] ],
ref_block_bytes: 'e509',
ref_block_hash: '4a003f914c0fbd26',
expiration: 1608477021000,
timestamp: 1608476961929
},
raw_data_hex: '0a02e50922084a003f914c0fbd2640c8a6ce85e82e5a76080f12700a30747970652e676f6f676c65617069732e636f6d2f70726f746f636f6c2e5570646174654173736574436f6e7472616374123c0a1541401a8da8a7fc86f0087f8c62e630d10df10a963b12037432741a1868747470733a2f2f76726f6e2e626b626f732e737061636520c0843d286428017089d9ca85e82e'
}