Message class

This is an implementation of the Message Format.

Annotations
  • @freezed

Constructors

Message({required List<Instruction> instructions})
Construct a message to send with a transaction to execute the provided instructions.
const
factory
Message.decompile(CompiledMessage compiledMessage, {List<AddressLookupTableAccount> addressLookupTableAccounts = const []})
factory
Message.only(Instruction instruction)
factory

Properties

copyWith → $MessageCopyWith<Message>
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
instructions List<Instruction>
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

compile({required String recentBlockhash, required Ed25519HDPublicKey feePayer}) CompiledMessage
Compiles a message into the array of bytes that would be interpreted by solana. The recentBlockhash is passed here as this is the final step before sending the Message.
compileV0({required String recentBlockhash, required Ed25519HDPublicKey feePayer, List<AddressLookupTableAccount> addressLookupTableAccounts = const []}) CompiledMessage
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