Method: Hive::Broadcast.transfer
- Defined in:
- lib/hive/broadcast.rb
.transfer(options, &block) ⇒ Object
277 278 279 280 281 282 283 284 285 286 287 |
# File 'lib/hive/broadcast.rb', line 277 def self.transfer(, &block) required_fields = %i(from to amount memo) params = [:params] check_required_fields(params, *required_fields) params[:amount] = normalize_amount(.merge amount: params[:amount]) ops = [[:transfer, params]] process(.merge(ops: ops), &block) end |