创建一个未签名的交易,用于更新第一验证者佣金比例。
用法
visionWeb.transactionBuilder.updateBrokerage(brokerage, ownerAddress);
入参
参数 | 描述 | 类型 | 默认值 |
---|---|---|---|
brokerage | 佣金比例 | number | - |
ownerAddress | 交易创建者的地址 | string | 默认账户地址 |
返回值
object,创建的 transaction 对象。
示例
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'
}