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. [...]
read-only, inherited
- httpClient ↔ Client
-
read / write, inherited
-
queryParameters
↔ Map<
String, String> -
read / write, inherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
- uriBuilder ↔ Uri
-
read / write, inherited
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 -
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 non-existent 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
-
"asset"
- SIGNER_PARAMETER_NAME → const String
-
"signer"
- SPONSOR_PARAMETER_NAME → const String
-
"sponsor"