Method: Hive::Broadcast.transfer_to_vesting
- Defined in:
- lib/hive/broadcast.rb
.transfer_to_vesting(options, &block) ⇒ Object
This operation converts HIVE into VFS (Vesting Fund Shares) at the current exchange rate.
= {
wif: wif,
params: {
from: from,
to: to,
amount: amount,
}
}
Hive::Broadcast.transfer_to_vesting() do |result|
puts result
end
313 314 315 316 317 318 319 320 321 322 323 |
# File 'lib/hive/broadcast.rb', line 313 def self.transfer_to_vesting(, &block) required_fields = i(from to amount) params = [:params] check_required_fields(params, *required_fields) params[:amount] = normalize_amount(.merge amount: params[:amount]) ops = [[:transfer_to_vesting, params]] process(.merge(ops: ops), &block) end |