SetTrustlineFlagsOperationResponse class

Represents a set trustline flags operation response from Horizon.

This operation sets or clears trustline authorization flags on a trustline. It replaces the deprecated AllowTrustOperation and provides more granular control over trustline authorization states.

Returned by: Horizon API operations endpoint when querying set trustline flags operations

Fields:

  • trustor: Account holding the trustline being modified
  • assetType: Type of asset ('credit_alphanum4' or 'credit_alphanum12')
  • assetCode: Code of the asset
  • assetIssuer: Issuer account ID of the asset (source account)
  • clearFlags: Human-readable names of flags being cleared
  • setFlags: Human-readable names of flags being set
  • clearFlagsInt: Integer values of flags being cleared
  • setFlagsInt: Integer values of flags being set

Example:

final operations = await sdk.operations
    .forAccount('issuer_id')
    .execute();

for (var op in operations.records) {
  if (op is SetTrustlineFlagsOperationResponse) {
    print('Trustor: ${op.trustor}');
    if (op.setFlags != null) print('Set flags: ${op.setFlags}');
    if (op.clearFlags != null) print('Clear flags: ${op.clearFlags}');
  }
}

See also:

Inheritance

Constructors

SetTrustlineFlagsOperationResponse(String trustor, String assetType, String? assetCode, String? assetIssuer, List<String>? clearFlags, List<String>? setFlags, List<int>? clearFlagsInt, List<int>? setFlagsInt, OperationResponseLinks links, String id, String pagingToken, bool transactionSuccessful, String sourceAccount, String? sourceAccountMuxed, String? sourceAccountMuxedId, String type, int type_i, String createdAt, String transactionHash, TransactionResponse? transaction, String? sponsor)
Creates a SetTrustlineFlagsOperationResponse from Horizon API operation data.
SetTrustlineFlagsOperationResponse.fromJson(Map<String, dynamic> json)
Deserializes a set trustline flags operation response from JSON.
factory

Properties

assetCode String?
Code of the asset
getter/setter pair
assetIssuer String?
Issuer account ID of the asset (source account)
getter/setter pair
assetType String
Type of asset ('credit_alphanum4' or 'credit_alphanum12')
getter/setter pair
clearFlags List<String>?
Human-readable names of flags being cleared
getter/setter pair
clearFlagsInt List<int>?
Integer values of flags being cleared
getter/setter pair
createdAt String
When operation was created (ISO 8601 timestamp)
getter/setter pairinherited
hashCode int
The hash code for this object.
no setterinherited
id String
Unique operation identifier
getter/setter pairinherited
Hypermedia links to related resources
getter/setter pairinherited
pagingToken String
Pagination cursor for this operation
getter/setter pairinherited
rateLimitLimit int?
Maximum number of requests allowed in the current rate limit window.
getter/setter pairinherited
rateLimitRemaining int?
Number of requests remaining in the current rate limit window.
getter/setter pairinherited
rateLimitReset int?
Unix timestamp when the rate limit window will reset.
getter/setter pairinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
setFlags List<String>?
Human-readable names of flags being set
getter/setter pair
setFlagsInt List<int>?
Integer values of flags being set
getter/setter pair
sourceAccount String
Operation source account ID
getter/setter pairinherited
sourceAccountMuxed String?
Muxed account address if applicable
getter/setter pairinherited
sourceAccountMuxedId String?
Muxed account sub-account ID if applicable
getter/setter pairinherited
Account sponsoring the operation's reserves if applicable
getter/setter pairinherited
transaction TransactionResponse?
Full transaction that contains this operation
getter/setter pairinherited
transactionHash String
Parent transaction hash
getter/setter pairinherited
transactionSuccessful bool
Whether the parent transaction succeeded
getter/setter pairinherited
trustor String
Account holding the trustline being modified
getter/setter pair
type String
Operation type name (e.g., 'payment', 'create_account')
getter/setter pairinherited
type_i int
Operation type as integer (0-26)
getter/setter pairinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setHeaders(Map<String, String> headers) → void
Populates rate limit fields from HTTP response headers.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited