class TezosClient::TransactionsOperation

Public Instance Methods

operations() click to toggle source
# File lib/tezos_client/operations/transactions_operation.rb, line 16
def operations
  @args[:amounts].map do |destination, amount|
    {
      kind: :transaction,
      amount: amount,
      to: destination
    }.merge(
      @args.slice(
        :gas_limit,
        :storage_limit,
        :fee
      )
    )
  end
end
rpc_operation_args() click to toggle source
# File lib/tezos_client/operations/transactions_operation.rb, line 5
def rpc_operation_args
  @rpc_operation_args ||= begin
    OperationArray.new(
      operations: operations,
      secret_key: @args.fetch(:secret_key),
      from: @args.fetch(:from),
      rpc_interface: rpc_interface
    ).rpc_operation_args
  end
end