Class: CardanoWallet::Shelley::Addresses

Inherits:
Base
  • Object
show all
Defined in:
lib/cardano_wallet/shelley.rb

Overview

API for Addresses

Examples:

@cw = CardanoWallet.new
@cw.shelley.addresses # API for Shelley addresses

See Also:

Instance Attribute Summary

Attributes inherited from Base

#opt

Instance Method Summary collapse

Methods inherited from Base

#byron, #initialize, #misc, #shared, #shelley, #utils

Constructor Details

This class inherits a constructor from CardanoWallet::Base

Instance Method Details

#list(wid, query = {}) ⇒ Object

List addresses



246
247
248
249
# File 'lib/cardano_wallet/shelley.rb', line 246

def list(wid, query = {})
  query_formatted = query.empty? ? '' : Utils.to_query(query)
  self.class.get("/wallets/#{wid}/addresses#{query_formatted}")
end