AccountThresholdsUpdatedEffectResponse class
Represents an account thresholds updated effect response from Horizon.
This effect occurs when an account changes its multi-signature thresholds via the Set Options operation. Thresholds determine how much signing weight is required for different operation types, enabling multi-signature authorization.
Thresholds categories:
- Low: Used for AllowTrust and BumpSequence operations
- Medium: Used for all other operations except SetOptions
- High: Used for SetOptions operations (changing account settings)
Each threshold value ranges from 0 to 255, where 0 means any signature works, and higher values require more signing weight from account signers.
Triggered by: SetOptionsOperation Returned by: Horizon API effects endpoint when querying for threshold changes
Example:
final effects = await sdk.effects.forAccount('account_id').execute();
for (var effect in effects.records) {
if (effect is AccountThresholdsUpdatedEffectResponse) {
print('Thresholds updated:');
print(' Low: ${effect.lowThreshold}');
print(' Medium: ${effect.medThreshold}');
print(' High: ${effect.highThreshold}');
}
}
See also:
- SetOptionsOperation for setting thresholds
- Stellar developer docs
- Inheritance
-
- Object
- Response
- EffectResponse
- AccountThresholdsUpdatedEffectResponse
Constructors
- AccountThresholdsUpdatedEffectResponse(int lowThreshold, int medThreshold, int highThreshold, String id, int type_i, String type, String createdAt, String pagingToken, String account, EffectResponseLinks links)
- Creates an AccountThresholdsUpdatedEffectResponse from Horizon API effect data.
-
AccountThresholdsUpdatedEffectResponse.fromJson(Map<
String, dynamic> json) -
factory
Properties
- account ↔ String
-
Account ID affected by this effect
getter/setter pairinherited
- accountMuxed ↔ String?
-
Muxed account address if the account is a muxed account
getter/setter pairinherited
- accountMuxedId ↔ String?
-
Muxed account sub-account ID if applicable
getter/setter pairinherited
- createdAt ↔ String
-
When this effect occurred in ISO 8601 format
getter/setter pairinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- highThreshold ↔ int
-
Threshold for high security operations (SetOptions)
getter/setter pair
- id ↔ String
-
Unique identifier for this effect
getter/setter pairinherited
- links ↔ EffectResponseLinks
-
Links to related resources
getter/setter pairinherited
- lowThreshold ↔ int
-
Threshold for low security operations (AllowTrust, BumpSequence)
getter/setter pair
- medThreshold ↔ int
-
Threshold for medium security operations (most operations)
getter/setter pair
- pagingToken ↔ String
-
Cursor for pagination
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
- type ↔ String
-
Human-readable effect type name
getter/setter pairinherited
- type_i ↔ int
-
Effect type as integer code
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