class CardanoWallet::Shared::Keys
API for Keys
@see input-output-hk.github.io/cardano-wallet/api/edge/#tag/Shared-Keys
Public Instance Methods
create_acc_public_key(wid, index, payload)
click to toggle source
@see input-output-hk.github.io/cardano-wallet/api/#operation/postAccountKeyShared
# File lib/cardano_wallet/shared.rb, line 52 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
get_acc_public_key(wid, query = {})
click to toggle source
@see input-output-hk.github.io/cardano-wallet/api/edge/#operation/getAccountKeyShared
# File lib/cardano_wallet/shared.rb, line 61 def get_acc_public_key(wid, query = {}) query_formatted = query.empty? ? '' : Utils.to_query(query) self.class.get("/shared-wallets/#{wid}/keys#{query_formatted}") end
get_public_key(wid, role, index, hash = {})
click to toggle source
@see input-output-hk.github.io/cardano-wallet/api/#operation/getSharedWalletKey localhost:8090/v2/shared-wallets/{walletId}/keys/{role}/{index}?hash=false
# File lib/cardano_wallet/shared.rb, line 46 def get_public_key(wid, role, index, hash = {}) hash_query = hash.empty? ? '' : Utils.to_query(hash) self.class.get("/shared-wallets/#{wid}/keys/#{role}/#{index}#{hash_query}") end