AccountsRequestBuilder class
Provides information on a specific account. See Account Details
- Inheritance
-
- Object
- RequestBuilder
- AccountsRequestBuilder
Constructors
- AccountsRequestBuilder(Client httpClient, Uri serverURI)
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- httpClient ↔ Client
-
getter/setter pairinherited
-
queryParameters
↔ Map<
String, String> -
getter/setter pairinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- uriBuilder ↔ Uri
-
getter/setter pairinherited
Methods
-
account(
String accountId) → Future< AccountResponse> -
Requests details about the account to fetch by
accountId
. See Account Details -
accountURI(
Uri uri) → Future< AccountResponse> -
Requests specific
uri
and returns AccountResponse. This method is helpful for getting the links. -
buildUri(
) → Uri -
inherited
-
cursor(
String token) → AccountsRequestBuilder -
Sets cursor parameter on the request.
A cursor is a value that points to a specific location in a collection of resources.
The cursor attribute itself is an opaque value meaning that users should not try to parse it.
override
-
encodeAsset(
Asset asset) → String -
inherited
-
encodeAssets(
List< Asset> assets) → String -
inherited
-
execute(
) → Future< Page< AccountResponse> > - Build and execute request.
-
forAsset(
Asset asset) → AccountsRequestBuilder -
Returns all accounts who are trustees to a specific
asset
. See: Accounts -
forLiquidityPool(
String poolId) → AccountsRequestBuilder -
forSigner(
String signerAccountId) → AccountsRequestBuilder -
Returns all accounts that contain a specific signer given by the
signerAccountId
See: Accounts -
forSponsor(
String sponsorAccountId) → AccountsRequestBuilder -
Returns all accounts that contain a specific sponsor given by the
sponsorAccountId
See: Accounts -
limit(
int number) → AccountsRequestBuilder -
Sets limit parameter on the request.
It defines maximum number of records to return.
For range and default values check documentation of the endpoint requested.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
order(
RequestBuilderOrder direction) → AccountsRequestBuilder -
Sets order parameter on the request.
override
-
setSegments(
List< String> segments) → RequestBuilder -
inherited
-
stream(
) → Stream< AccountResponse> - Allows to stream SSE events from horizon. Certain endpoints in Horizon can be called in streaming mode using Server-Sent Events. This mode will keep the connection to horizon open and horizon will continue to return responses as ledgers close. See: Streaming
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
requestExecute(
Client httpClient, Uri uri) → Future< Page< AccountResponse> > - Requests specific uri and returns Page of AccountResponse. This method is helpful for getting the next set of results.
Constants
- ASSET_PARAMETER_NAME → const String
- LIQUIDITY_POOL_PARAMETER_NAME → const String
- SIGNER_PARAMETER_NAME → const String
- SPONSOR_PARAMETER_NAME → const String