SolanaTokenAccount class
Account data.
- Inheritance
-
- Object
- LayoutSerializable
- SolanaTokenAccount
Constructors
- SolanaTokenAccount({required SolAddress address, required SolAddress mint, required SolAddress owner, required BigInt amount, required SolAddress? delegate, required BigInt delegatedAmount, required BigInt? rentExemptReserve, required SolAddress? closeAuthority, required AccountState state})
-
const
-
SolanaTokenAccount.fromBuffer({required List<
int> data, required SolAddress address}) -
factory
Properties
- address → SolAddress
-
final
- amount → BigInt
-
The amount of tokens this account holds.
final
- closeAuthority → SolAddress?
-
Optional authority to close the account.
final
- delegate → SolAddress?
-
If delegate is Some then delegatedAmount represents
the amount authorized by the delegate
final
- delegatedAmount → BigInt
-
The amount delegated
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isNative → bool
-
this is a native token, and the value logs the
rent-exempt reserve. An Account is required to be rent-exempt, so
the value is used by the Processor to ensure that wrapped SOL
accounts do not drop below this threshold.
no setter
- layout → StructLayout
-
The layout representing the structure of the object for serialization.
no setteroverride
- mint → SolAddress
-
The mint associated with this account
final
- owner → SolAddress
-
The owner of this account.
final
- rentExemptReserve → BigInt?
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- state → AccountState
-
The account's state
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
serialize(
) → Map< String, dynamic> -
Serializes the object to a map.
override
-
toBytes(
) → List< int> -
Converts the object to bytes using Borsh serialization.
inherited
-
toHex(
) → String -
Converts the object to a hexadecimal string.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited