Method: Hive::Broadcast.vote
- Defined in:
- lib/hive/broadcast.rb
.vote(options, &block) ⇒ Object
This operation is used to cast a vote on a post/comment.
= {
wif: wif,
params: {
voter: voter,
author: ,
permlink: permlink,
weight: weight
}
}
Hive::Broadcast.vote() do |result|
puts result
end
63 64 65 66 67 68 69 70 71 |
# File 'lib/hive/broadcast.rb', line 63 def self.vote(, &block) required_fields = i(voter permlink weight) params = [:params] check_required_fields(params, *required_fields) ops = [[:vote, params]] process(.merge(ops: ops), &block) end |