Vote
public struct Vote : OperationType, Equatable
Voting operation, votes for content.
-
The account that is casting the vote.
Declaration
Swift
public var voter: String
-
The account name that is receieving the vote.
Declaration
Swift
public var author: String
-
The content being voted for.
Declaration
Swift
public var permlink: String
-
The vote weight. 100% = 10000. A negative value is a
flag
.Declaration
Swift
public var weight: Int16
-
Create a new vote operation.
Declaration
Swift
public init(voter: String, author: String, permlink: String, weight: Int16 = 10000)
Parameters
voter
The account that is voting for the content.
author
The account that is recieving the vote.
permlink
The permalink of the content to be voted on,
weight
The weight to use when voting, a percentage expressed as -10000 to 10000.