Class: CardanoWallet::Shared::Keys
- Defined in:
- lib/cardano_wallet/shared.rb
Overview
API for Keys
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
- #create_acc_public_key(wid, index, payload) ⇒ Object
- #get_acc_public_key(wid, query = {}) ⇒ Object
- #get_public_key(wid, role, index, hash = {}) ⇒ Object
Methods inherited from Base
#byron, #initialize, #misc, #shared, #shelley, #utils
Constructor Details
This class inherits a constructor from CardanoWallet::Base
Instance Method Details
#create_acc_public_key(wid, index, payload) ⇒ Object
161 162 163 164 165 166 167 |
# File 'lib/cardano_wallet/shared.rb', line 161 def create_acc_public_key(wid, index, payload) # payload = { passphrase: pass, format: format } Utils.verify_param_is_hash!(payload) self.class.post("/shared-wallets/#{wid}/keys/#{index}", body: payload.to_json, headers: { 'Content-Type' => 'application/json' }) end |