Module: Nis::Endpoint::Account::UnconfirmedTransactions

Included in:
Nis
Defined in:
lib/nis/endpoint/account/unconfirmed_transactions.rb

Instance Method Summary collapse

Instance Method Details

#account_unconfirmed_transactions(address:) ⇒ Array <Nis::Struct::UnconfirmedTransactionMetaDataPair>



6
7
8
9
10
11
12
13
14
15
# File 'lib/nis/endpoint/account/unconfirmed_transactions.rb', line 6

def (address:)
  request!(:get, '/account/unconfirmedTransactions', address: address) do |res|
    res[:data].map do |utmdp|
      Nis::Struct::UnconfirmedTransactionMetaDataPair.build(
        meta: utmdp[:meta],
        transaction: utmdp[:transaction]
      )
    end
  end
end