Enum solana_sdk::message::SanitizedMessage [−][src]
pub enum SanitizedMessage {
Legacy(Message),
V0(LoadedMessage),
}
Expand description
Sanitized message of a transaction which includes a set of atomic instructions to be executed on-chain
Variants
Legacy(Message)
Tuple Fields
0: Message
Sanitized legacy message
V0(LoadedMessage)
Tuple Fields
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.
pub fn serialize_instructions(&self) -> Vec<u8, Global>ⓘ
Return the number of readonly accounts loaded by this message.
Try to compile an instruction using the account keys in this message.
Inspect all message keys for the bpf upgradeable loader
Trait Implementations
type Error = SanitizeMessageError
type Error = SanitizeMessageError
The type returned in the event of a conversion error.
pub fn try_from(
message: Message
) -> Result<SanitizedMessage, <SanitizedMessage as TryFrom<Message>>::Error>
pub fn try_from(
message: Message
) -> Result<SanitizedMessage, <SanitizedMessage as TryFrom<Message>>::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