Class: CardanoWallet::Shared::Addresses

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

Overview

API for Addresses

Examples:

@cw = CardanoWallet.new
@cw.shared.addresses # API for Shared 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



142
143
144
145
# File 'lib/cardano_wallet/shared.rb', line 142

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