Module: Cryptoprocessing::Client::CoinbaseWallet
- Included in:
- Cryptoprocessing::Client
- Defined in:
- lib/cryptoprocessing/client/coinbase_wallet.rb
Overview
Mimic Coinbase Wallet Client
Instance Method Summary collapse
- #accounts ⇒ Object
- #address_transactions(account_uid, address_uid, params = {}) ⇒ Object
- #primary_account ⇒ Object
Instance Method Details
#accounts ⇒ Object
40 41 42 |
# File 'lib/cryptoprocessing/client/coinbase_wallet.rb', line 40 def accounts [] end |
#address_transactions(account_uid, address_uid, params = {}) ⇒ Object
24 25 26 27 28 29 30 31 32 33 34 35 |
# File 'lib/cryptoprocessing/client/coinbase_wallet.rb', line 24 def address_transactions(account_uid, address_uid, params = {}) list_transactions = [] @client.address_transactions(account_uid, address_uid) do |data, resp| data.each do |tx| if tx['confirmations_count'] > 3 && tx['type'] == 'send' list_transactions.append(tx) end end end list_transactions end |
#primary_account ⇒ Object
10 11 12 |
# File 'lib/cryptoprocessing/client/coinbase_wallet.rb', line 10 def primary_account end |