Class AccountsRequestBuilder
Builds requests connected to accounts.
Inheritance
Inherited Members
Namespace: System.Dynamic.ExpandoObject
Assembly: stellar-dotnet-sdk.dll
Syntax
public class AccountsRequestBuilder : RequestBuilderExecutePageable<AccountsRequestBuilder, AccountResponse>
Constructors
AccountsRequestBuilder(Uri, HttpClient)
Builds requests connected to accounts.
Declaration
public AccountsRequestBuilder(Uri serverUri, HttpClient httpClient)
Parameters
Type | Name | Description |
---|---|---|
Uri | serverUri | |
HttpClient | httpClient |
Methods
Account(String)
Requests GET /accounts/{account} https://www.stellar.org/developers/horizon/reference/accounts-single.html
Declaration
public async Task<AccountResponse> Account(string account)
Parameters
Type | Name | Description |
---|---|---|
System.String | account | Account to fetch |
Returns
Task<AccountResponse>
|
Account(Uri)
Requests specific uri and returns AccountResponse This method is helpful for getting the links.
Declaration
public async Task<AccountResponse> Account(Uri uri)
Parameters
Type | Name | Description |
---|---|---|
Uri | uri |
Returns
Task<AccountResponse>
|
AccountData(String, String)
Requests GET /accounts/{account}/data/{key} https://www.stellar.org/developers/horizon/reference/endpoints/data-for-account.html
Declaration
public async Task<AccountDataResponse> AccountData(string accountId, string key)
Parameters
Type | Name | Description |
---|---|---|
System.String | accountId | |
System.String | key | Key to the data needing retrieval. |
Returns
Task<AccountDataResponse>
|
AccountData(Uri)
Declaration
public async Task<AccountDataResponse> AccountData(Uri uri)
Parameters
Type | Name | Description |
---|---|---|
Uri | uri |
Returns
Task<AccountDataResponse>
|
Accounts(Action<AccountsRequestBuilder.AccountsRequestOptions>)
Filter accounts that have the given signer or have a trustline to the given asset. https://www.stellar.org/developers/horizon/reference/endpoints/accounts.html
Declaration
public AccountsRequestBuilder Accounts(Action<AccountsRequestBuilder.AccountsRequestOptions> optionsAction)
Parameters
Type | Name | Description |
---|---|---|
Action<AccountsRequestBuilder.AccountsRequestOptions> | optionsAction |
Returns
AccountsRequestBuilder
|
Accounts(AccountsRequestBuilder.AccountsRequestOptions)
Filter accounts that have the given signer or have a trustline to the given asset. https://www.stellar.org/developers/horizon/reference/endpoints/accounts.html
Declaration
public AccountsRequestBuilder Accounts(AccountsRequestBuilder.AccountsRequestOptions options)
Parameters
Type | Name | Description |
---|---|---|
AccountsRequestBuilder.AccountsRequestOptions | options | The filtering options |
Returns
AccountsRequestBuilder
|
WithSigner(String)
Filter accounts that have the given signer.
Declaration
public AccountsRequestBuilder WithSigner(string signer)
Parameters
Type | Name | Description |
---|---|---|
System.String | signer | The signer. |
Returns
AccountsRequestBuilder
|
WithTrustline(Asset)
Filter accounts that have a trustline to the given asset.
Declaration
public AccountsRequestBuilder WithTrustline(Asset asset)
Parameters
Type | Name | Description |
---|---|---|
Asset | asset |
Returns
AccountsRequestBuilder
|