/// <summary> /// Get all delegate forging account from a public key asynchronously /// </summary> /// <returns>DelegateForgingAccountResponse with account details</returns> public async Task<DelegateForgingAccountResponse> GetDelegateForgingAccountAsync(DelegateForgingAccountRequest req) { _url.Path = Constants.ApiGetDelegateForgeAccount; _url.Query = req.ToQuery(); var response = await _client.GetJsonAsync<DelegateForgingAccountResponse>(_url.ToString()); return response; }
/// <summary> /// Get all delegate forging account from a public key synchronously /// </summary> /// <returns>DelegateForgingAccountResponse with account details</returns> public DelegateForgingAccountResponse GetDelegateForgingAccount(DelegateForgingAccountRequest req) { var response = GetDelegateForgingAccountAsync(req).GetAwaiter().GetResult(); return response; }