SPLTokenMetaDataAccount class
Data struct for all token-metadata, stored in a TLV entry
The type and length parts must be handled by the TLV library, and not stored as part of this struct.
- Inheritance
-
- Object
- LayoutSerializable
- SPLTokenMetaDataAccount
Constructors
-
SPLTokenMetaDataAccount({required SolAddress? updateAuthority, required SolAddress mint, required String name, required String symbol, required String uri, required List<
AdditionalMetadata> additionalMetadata}) -
const
-
SPLTokenMetaDataAccount.fromAccountDataBytes(List<
int> data) -
factory
-
SPLTokenMetaDataAccount.fromBuffer(List<
int> data) -
factory
Properties
-
additionalMetadata
→ List<
AdditionalMetadata> -
Any additional metadata about the token as key-value pairs. The program
must avoid storing the same key twice.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- layout → StructLayout
-
The layout representing the structure of the object for serialization.
no setteroverride
- mint → SolAddress
-
The associated mint, used to counter spoofing to be sure that metadata
belongs to a particular mint
final
- name → String
-
The longer name of the token
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- symbol → String
-
The shortened symbol for the token
final
- updateAuthority → SolAddress?
-
The authority that can sign to update the metadata
final
- uri → String
-
The URI pointing to richer metadata
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