AccountsClient
class HyperionApiClient::Clients::AccountsClient
: public ClientExtensionsSummary
public string BaseUrl
public AccountsClient(HttpClient httpClient)
public async Task< GetCreatedAccountsResponse > GetCreatedAccountsAsync(string account, int? limit, int? skip, CancellationToken cancellationToken) = default
get created accounts
public async Task< GetCreatorResponse > GetCreatorAsync(string account, CancellationToken cancellationToken) = default
get account creator
public async Task< GetAccountResponse > GetAccountAsync(string account, int? limit, int? skip, CancellationToken cancellationToken) = default
get account summary
public async Task< GetKeyAccountsWithPermissionsResponse > GetKeyAccountsAsync(string publicKey, int? limit, int? skip, bool? details, CancellationToken cancellationToken) = default
get accounts by public key
public async Task< GetLinksResponse > GetLinksAsync(string account, string code, string action, string permission, CancellationToken cancellationToken) = default
get permission links
public async Task< GetTokensResponse > GetTokensAsync(string account, int? limit, int? skip, CancellationToken cancellationToken) = default
get all tokens
public async Task< GetControlledAccountsResponse > GetControlledAccountsAsync(string controllingAccount, CancellationToken cancellationToken) = default
get controlled accounts by controlling accounts
private readonly HttpClient _httpClient
Members
public string BaseUrl
public AccountsClient(HttpClient httpClient)
public async Task< GetCreatedAccountsResponse > GetCreatedAccountsAsync(string account, int? limit, int? skip, CancellationToken cancellationToken) = default
get created accounts
Parameters
cancellationTokenA cancellation token that can be used by other objects or threads to receive notice of cancellation.
Parameters
accountcreator accountlimitlimit of [n] results per pageskipskip [n] results
Exceptions
ApiExceptionA server side error occurred.
public async Task< GetCreatorResponse > GetCreatorAsync(string account, CancellationToken cancellationToken) = default
get account creator
Parameters
cancellationTokenA cancellation token that can be used by other objects or threads to receive notice of cancellation.
Parameters
accountcreated account
Exceptions
ApiExceptionA server side error occurred.
public async Task< GetAccountResponse > GetAccountAsync(string account, int? limit, int? skip, CancellationToken cancellationToken) = default
get account summary
Parameters
cancellationTokenA cancellation token that can be used by other objects or threads to receive notice of cancellation.
Parameters
accountaccount namelimitlimit of [n] results per pageskipskip [n] results
Exceptions
ApiExceptionA server side error occurred.
public async Task< GetKeyAccountsWithPermissionsResponse > GetKeyAccountsAsync(string publicKey, int? limit, int? skip, bool? details, CancellationToken cancellationToken) = default
get accounts by public key
Parameters
cancellationTokenA cancellation token that can be used by other objects or threads to receive notice of cancellation.
Parameters
public_keypublic keylimitlimit of [n] results per pageskipskip [n] resultsdetailsinclude permission details
Exceptions
ApiExceptionA server side error occurred.
public async Task< GetLinksResponse > GetLinksAsync(string account, string code, string action, string permission, CancellationToken cancellationToken) = default
get permission links
Parameters
cancellationTokenA cancellation token that can be used by other objects or threads to receive notice of cancellation.
Parameters
accountaccount namecodecontract nameactionmethod namepermissionpermission name
Exceptions
ApiExceptionA server side error occurred.
public async Task< GetTokensResponse > GetTokensAsync(string account, int? limit, int? skip, CancellationToken cancellationToken) = default
get all tokens
Parameters
cancellationTokenA cancellation token that can be used by other objects or threads to receive notice of cancellation.
Parameters
accountaccount namelimitlimit of [n] results per pageskipskip [n] results
Returns
Default Response
Exceptions
ApiExceptionA server side error occurred.
public async Task< GetControlledAccountsResponse > GetControlledAccountsAsync(string controllingAccount, CancellationToken cancellationToken) = default
get controlled accounts by controlling accounts
Parameters
cancellationTokenA cancellation token that can be used by other objects or threads to receive notice of cancellation.
Exceptions
ApiExceptionA server side error occurred.
private readonly HttpClient _httpClient
Last updated