Method: Hive::Broadcast.convert
- Defined in:
- lib/hive/broadcast.rb
.convert(options, &block) ⇒ Object
This operation instructs the blockchain to start a conversion between HIVE and HBD, the funds are deposited after 3.5 days.
441 442 443 444 445 446 447 448 449 450 451 |
# File 'lib/hive/broadcast.rb', line 441 def self.convert(, &block) required_fields = %i(owner requestid amount) params = [:params] check_required_fields(params, *required_fields) params[:amount] = normalize_amount(.merge amount: params[:amount]) ops = [[:convert, params]] process(.merge(ops: ops), &block) end |