AccountResponseData class

Container for account data entries attached to an account.

Provides access to the data entries (key-value pairs) stored on-chain for an account. Each entry consists of a key (up to 64 bytes) and a base64-encoded value (up to 64 bytes). Accounts can have up to 1000 data entries.

This class provides convenient access methods:

  • Use bracket notation to get base64-encoded values
  • Use getDecoded() to get raw byte data
  • Use keys property to iterate over all data entry keys
  • Use length to check the number of data entries

See also:

Constructors

AccountResponseData(Map<String, dynamic> _map)
Creates an AccountResponseData container from Horizon API data.

Properties

hashCode int
The hash code for this object.
no setterinherited
keys Iterable<String>
no setter
length int
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

getDecoded(String key) Uint8List
Gets raw value for a given key.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited
operator [](Object key) String
Gets base64-encoded value for a given key.