MessageV0 class
A class representing a version 0 Solana message.
- Implemented types
Constructors
-
MessageV0({required MessageHeader header, required List<
SolAddress> accountKeys, required SolAddress recentBlockhash, required List<CompiledInstruction> compiledInstructions, required List<AddressTableLookup> addressTableLookups}) -
Constructs a MessageV0 with required parameters.
const
-
MessageV0.compile({required List<
TransactionInstruction> transactionInstructions, required SolAddress payer, required SolAddress recentBlockhash, List<AddressLookupTableAccount> lookupTableAccounts = const []}) -
Compiles a version 0 message from provided parameters.
factory
-
MessageV0.fromBuffer(List<
int> serializedMessage) -
Constructs a version 0 message from a serialized buffer.
factory
Properties
-
accountKeys
→ List<
SolAddress> -
The account keys used by this transaction.
final
-
addressTableLookups
→ List<
AddressTableLookup> -
The address table lookups associated with the message.
final
-
compiledInstructions
→ List<
CompiledInstruction> -
Instructions that will be executed in sequence and committed in one atomic transaction.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- header → MessageHeader
-
The message header, identifying signed and read-only accountKeys
final
- numAccountKeysFromLookups → int
-
Gets the number of account keys from lookups.
no setter
- recentBlockhash → SolAddress
-
The hash of a recent ledger block.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- 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}) → MessageV0 -
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
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited