public async Task <ApiResult <WalletResponse> > UpdateWalletIdentifier(string walletId, AssuranceLevel assuranceLevel, string name) { var url = $"{baseUrl}/api/v1/wallets/{walletId}"; var data = new { assuranceLevel = assuranceLevel.GetName().ToLower(), name = name }; var result = await apiClient.PutAsync <ApiResult <WalletResponse> >(url, data).ConfigureAwait(false); return(result); }
public async Task <ApiResult <WalletResponse> > CreateWalletAsync(List <string> backupPhrase, AssuranceLevel assuranceLevel, string name, string spendingPassword = "") { var data = new WalletCreatedRequest() { Operation = "create", BackupPhrase = backupPhrase, AssuranceLevel = assuranceLevel.GetName().ToLower(), Name = name, SpendingPassword = spendingPassword }; var url = $"{baseUrl}/api/v1/wallets"; return(await apiClient.PostAsync <ApiResult <WalletResponse> >(url, data).ConfigureAwait(false)); }