AccountInfo<T> class
Account Info
- Inheritance
-
- Mixed-in types
-
Constructors
-
AccountInfo.new({required u64 lamports, required String owner, required T? data, required bool executable, required u64 rentEpoch})
-
Account Information.
const
-
AccountInfo.fromJson(Map<String, dynamic> json)
-
Creates an instance of
this
class from the constructor parameters defined in the json
object.
factory
Properties
-
binaryData
→ String
-
Casts rawData to a binary encoded String.
no setterinherited
-
borshSchema
→ BorshSchema
-
Maps
this
class' properties to codecs.
no setteroverride
-
data
→ T?
-
The data associated with the account, either as encoded binary data (string, encoding) or
JSON format ({
final
-
executable
→ bool
-
Indicates if the account contains a program (and is strictly read-only)
final
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
isBinary
→ bool
-
True
if rawData is a binary encoded List.
no setterinherited
-
isJson
→ bool
-
True
if rawData is a JSON object.
no setterinherited
-
jsonData
→ Map<String, dynamic>
-
Casts rawData to a JSON object.
no setterinherited
-
lamports
→ u64
-
The number of lamports assigned to this account, as a u64.
final
-
owner
→ String
-
The base-58 encoded Pubkey of the program this account has been assigned to.
final
-
rawData
→ T?
-
A Serializable class for Account and Transaction data.
Account or Transaction data.
no setteroverride
-
rentEpoch
→ u64
-
The epoch at which this account will next owe rent, as a u64.
final
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
borshSize()
→ int
-
Returns the serialized byte length of
this
instance.
inherited
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
toBorsh()
→ Iterable<int>
-
Serializes
this
instance into a buffer.
inherited
-
toJson()
→ Map<String, dynamic>
-
Serialises
this
class into a JSON object.
override
-
toString()
→ String
-
A string representation of this object.
inherited