Instruction class

Taken from here.

An instruction representation that can be converted to a CompiledInstruction and included into a message.

Implementers
Annotations
  • @immutable

Constructors

Instruction({required Ed25519HDPublicKey programId, required List<AccountMeta> accounts, required ByteArray data})
Construct a generic instruction for the programId program with accounts. These accounts will be interpreted by the specific program with id programId.
const

Properties

accounts List<AccountMeta>
final
data ByteArray
final
hashCode int
The hash code for this object.
no setteroverride
programId Ed25519HDPublicKey
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

compile(Map<Ed25519HDPublicKey, int> accountIndexesMap) CompiledInstruction
Compiles instruction according to the instruction format.
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 ==(dynamic other) bool
The equality operator.
override