Message class
A class representing a legacy Solana message.
- Implemented types
Constructors
- 
          Message({required MessageHeader header, required List<SolAddress> accountKeys, required SolAddress recentBlockhash, required List<CompiledInstruction> compiledInstructions})
- 
          Constructs a Message with required parameters.
            const
- 
          Message.compile({required List<TransactionInstruction> transactionInstructions, required SolAddress payer, required SolAddress recentBlockhash})
- 
          Compiles a legacy message from provided parameters.
            factory
- 
          Message.fromBuffer(List<int> buffer)
- 
          Constructs a message from a serialized buffer.
            factory
Properties
- 
  accountKeys
  → List<SolAddress> 
- 
  The account keys associated with the message.
  final
- 
  compiledInstructions
  → List<CompiledInstruction> 
- 
  The compiled instructions of the message.
  final
- hashCode → int
- 
  The hash code for this object.
  no setterinherited
- header → MessageHeader
- 
  The header of the message.
  final
- recentBlockhash → SolAddress
- 
  The recent blockhash associated with the message.
  final
- runtimeType → Type
- 
  A representation of the runtime type of the object.
  no setterinherited
- 
  staticAccountKeys
  → List<SolAddress> 
- 
  Gets the static account keys associated with the message.
  no setter
- version → TransactionType
- 
  Gets the version of the message.
  no setteroverride
Methods
- 
  copyWith({MessageHeader? header, List< SolAddress> ? accountKeys, SolAddress? recentBlockhash, List<CompiledInstruction> ? compiledInstructions, List<AddressTableLookup> ? addressTableLookups}) → Message
- 
  
  override
- 
  getAccounts({List< AddressLookupTableAccount> addressLookupTableAccounts = const [], AccountLookupKeys? lookupKeys}) → MessageAccountKeys
- 
  Gets the accounts associated with the message.
  override
- 
  isAccountSigner(int index) → bool 
- 
  Checks if an account at the specified index is a signer.
  override
- 
  isAccountWritable(int index) → bool 
- 
  Checks if an account at the specified index is writable.
  override
- 
  noSuchMethod(Invocation invocation) → dynamic 
- 
  Invoked when a nonexistent method or property is accessed.
  inherited
- 
  serialize() → List< int> 
- 
  Serializes the message.
  override
- 
  serializeHex() → String 
- Serializes the message to hexadecimal format.
- 
  toString() → String 
- 
  A string representation of this object.
  inherited
Operators
- 
  operator ==(Object other) → bool 
- 
  The equality operator.
  inherited