mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2024-11-19 18:11:36 +01:00
17 lines
526 B
C#
17 lines
526 B
C#
|
using System.Collections.Generic;
|
||
|
using System.Threading;
|
||
|
using System.Threading.Tasks;
|
||
|
using BTCPayServer.Client.Models;
|
||
|
|
||
|
namespace BTCPayServer.Client
|
||
|
{
|
||
|
public partial class BTCPayServerClient
|
||
|
{
|
||
|
public virtual async Task<IEnumerable<CustodianData>> GetCustodians(CancellationToken token = default)
|
||
|
{
|
||
|
var response = await _httpClient.SendAsync(CreateHttpRequest("api/v1/custodians"), token);
|
||
|
return await HandleResponse<IEnumerable<CustodianData>>(response);
|
||
|
}
|
||
|
}
|
||
|
}
|