SPLTokenMetaDataRemoveFieldLayout class
Removes a key-value pair in a token-metadata account layout.
- Inheritance
-
- Object
- ProgramLayout
- SPLTokenMetaDataProgramLayout
- SPLTokenMetaDataRemoveFieldLayout
Constructors
- SPLTokenMetaDataRemoveFieldLayout({required String key, required bool idempotent})
-
Constructs a new instance of SPLTokenMetaDataRemoveFieldLayout with the provided key and idempotent flag.
const
-
SPLTokenMetaDataRemoveFieldLayout.fromBuffer(List<
int> bytes) -
Decodes the provided byte array to construct a new SPLTokenMetaDataRemoveFieldLayout instance.
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- idempotent → bool
-
If the idempotent flag is set to true, then the instruction will not
error if the key does not exist
final
-
instruction
→ List<
int> -
Gets the instruction bytes for the remove field instruction.
no setteroverride
- key → String
-
Key to remove in the additional metadata portion
final
- layout → StructLayout
-
The layout structure of this remove field instruction.
no setteroverride
- 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
-
serialize(
) → Map< String, dynamic> -
Serializes the remove field instruction data.
override
-
toBytes(
) → List< int> -
Converts the program to bytes using Borsh serialization.
inherited
-
toHex(
) → String -
Converts the program to a hexadecimal string.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited