Enum solana_program::message::SanitizedMessage
source · [−]pub enum SanitizedMessage {
Legacy(LegacyMessage),
V0(LoadedMessage),
}
Expand description
Sanitized message of a transaction which includes a set of atomic instructions to be executed on-chain
Variants
Legacy(LegacyMessage)
Sanitized legacy message
V0(LoadedMessage)
Sanitized version #0 message with mapped addresses
Implementations
Return true if this message contains duplicate account keys
Message header which identifies the number of signer and writable or readonly accounts
Returns a legacy message if this sanitized message wraps one
The hash of a recent block, used for timing out a transaction
Program instructions that will be executed in sequence and committed in one atomic transaction if all succeed.
pub fn program_instructions_iter(
&self
) -> impl Iterator<Item = (&Pubkey, &CompiledInstruction)>
pub fn program_instructions_iter(
&self
) -> impl Iterator<Item = (&Pubkey, &CompiledInstruction)>
Program instructions iterator which includes each instruction’s program id.
Iterator of all account keys referenced in this message, included mapped keys.
Length of all account keys referenced in this message, included mapped keys.
Returns the address of the account at the specified index.
Returns true if the account at the specified index is invoked as a program in this message.
Returns true if the account at the specified index is not invoked as a program or, if invoked, is passed to a program.
Returns true if the account at the specified index is writable by the instructions in this message.
Returns true if the account at the specified index signed this message.
Return the number of readonly accounts loaded by this message.
Try to compile an instruction using the account keys in this message.
pub fn decompile_instructions(&self) -> Vec<BorrowedInstruction<'_>>ⓘ
pub fn decompile_instructions(&self) -> Vec<BorrowedInstruction<'_>>ⓘ
Decompile message instructions without cloning account keys
Inspect all message keys for the bpf upgradeable loader
If the message uses a durable nonce, return the pubkey of the nonce account
Trait Implementations
type Error = SanitizeMessageError
type Error = SanitizeMessageError
The type returned in the event of a conversion error.
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for SanitizedMessage
impl Send for SanitizedMessage
impl Sync for SanitizedMessage
impl Unpin for SanitizedMessage
impl UnwindSafe for SanitizedMessage
Blanket Implementations
Mutably borrows from an owned value. Read more