Class: WavesRubyClient::Transaction

Inherits:
Object
  • Object
show all
Defined in:
lib/waves_ruby_client/transaction.rb

Overview

Access unconfirmed transactions

Class Method Summary collapse

Class Method Details

.my_unconfirmed_exchangesObject

own unconfirmed exchange transactions



11
12
13
14
15
16
17
18
# File 'lib/waves_ruby_client/transaction.rb', line 11

def self.my_unconfirmed_exchanges
  unconfirmed.select do |transaction|
    next unless transaction['type'] == 7

    transaction['order1']['senderPublicKey'] == WavesRubyClient::WAVES_PUBLIC_KEY ||
      transaction['order2']['senderPublicKey'] == WavesRubyClient::WAVES_PUBLIC_KEY
  end
end

.unconfirmedObject



6
7
8
# File 'lib/waves_ruby_client/transaction.rb', line 6

def self.unconfirmed
  WavesRubyClient::Api.instance.call_node('/transactions/unconfirmed')
end