Class: WavesRubyClient::Transaction
- Inherits:
-
Object
- Object
- WavesRubyClient::Transaction
- Defined in:
- lib/waves_ruby_client/transaction.rb
Overview
Access unconfirmed transactions
Class Method Summary collapse
-
.my_unconfirmed_exchanges ⇒ Object
own unconfirmed exchange transactions.
- .unconfirmed ⇒ Object
Class Method Details
.my_unconfirmed_exchanges ⇒ Object
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 |
.unconfirmed ⇒ Object
6 7 8 |
# File 'lib/waves_ruby_client/transaction.rb', line 6 def self.unconfirmed WavesRubyClient::Api.instance.call_node('/transactions/unconfirmed') end |