SPLTokenMetaDataProgram class
Represents transaction instructions related to the SPL token metadata program.
- Inheritance
-
- Object
- TransactionInstruction
- SPLTokenMetaDataProgram
Constructors
-
SPLTokenMetaDataProgram({required List<
AccountMeta> keys, required SolAddress programId, required ProgramLayout layout}) - SPLTokenMetaDataProgram.emit({required SPLTokenMetaDataEmitLayout layout, required SolAddress programId, required SolAddress metadata})
-
Emits the token-metadata as return data
factory
-
SPLTokenMetaDataProgram.fromBytes({required List<
AccountMeta> keys, required List<int> instructionBytes, required SolAddress programId}) -
factory
- SPLTokenMetaDataProgram.initialize({required SPLTokenMetaDataInitializeLayout layout, required SolAddress metadata, required SolAddress updateAuthority, required SolAddress mint, required SolAddress mintAuthority, required SolAddress programId})
-
Initializes a TLV.
factory
- SPLTokenMetaDataProgram.removeField({required SPLTokenMetaDataRemoveFieldLayout layout, required SolAddress programId, required SolAddress metadata, required SolAddress updateAuthority})
-
Removes a key-value pair in a token-metadata account.
factory
- SPLTokenMetaDataProgram.update({required SPLTokenMetaDataUpdateLayout layout, required SolAddress programId, required SolAddress metadata, required SolAddress updateAuthority})
-
Updates a field in a token-metadata account.
factory
- SPLTokenMetaDataProgram.updateAuthority({required SPLTokenMetaDataUpdateAuthorityLayout layout, required SolAddress programId, required SolAddress metadata, required SolAddress oldAuthority})
-
Updates the token-metadata authority.
factory
Properties
-
data
→ List<
int> -
Program input.
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
-
keys
→ List<
AccountMeta> -
Public keys to include in this transaction
Boolean represents whether this pubkey needs to sign the transaction
finalinherited
- layout → ProgramLayout
-
Program layout.
finalinherited
- programId → SolAddress
-
Program Id to execute.
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
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