Skip to main content
Vote for super representatives. This method will use 30 Compute Units.

Parameters

  • owner_address - String - Owner address, default hexString
  • votes - Object - The votes object which contains the following fields:
    • vote_address - String - The address of the witness you want to vote encoded in hexString
    • vote_count - int32 - The number of votes you want to vote
  • visible - boolean - Optional. Specifies whether the address is in Base58 format (default: false)

Returns

Transaction object - JSON object: Unsigned transaction, please refer to the Transaction chapter for the fields contained in it. Since the transaction type is VoteWitnessContract, the fields contained in raw_data.contract[0].parameter.value in the transaction are as follows: