Struct solana_program::message::Message  [−][src]
pub struct Message {
    pub header: MessageHeader,
    pub account_keys: Vec<Pubkey>,
    pub recent_blockhash: Hash,
    pub instructions: Vec<CompiledInstruction>,
}Fields
header: MessageHeaderThe message header, identifying signed and read-only account_keys
NOTE: Serialization-related changes must be paired with the direct read at sigverify.
account_keys: Vec<Pubkey>All the account keys used by this transaction
recent_blockhash: HashThe id of a recent ledger entry.
instructions: Vec<CompiledInstruction>Programs that will be executed in sequence and committed in one atomic transaction if all succeed.
Implementations
pub fn new_with_compiled_instructions(
    num_required_signatures: u8, 
    num_readonly_signed_accounts: u8, 
    num_readonly_unsigned_accounts: u8, 
    account_keys: Vec<Pubkey>, 
    recent_blockhash: Hash, 
    instructions: Vec<CompiledInstruction>
) -> Self
pub fn new_with_nonce(
    instructions: Vec<Instruction>, 
    payer: Option<&Pubkey>, 
    nonce_account_pubkey: &Pubkey, 
    nonce_authority_pubkey: &Pubkey
) -> Self
Compute the blake3 hash of a raw transaction message
pub fn get_account_keys_by_lock_type(
    &self, 
    demote_program_write_locks: bool
) -> (Vec<&Pubkey>, Vec<&Pubkey>)
pub fn deserialize_instruction(
    index: usize, 
    data: &[u8]
) -> Result<Instruction, SanitizeError>
Returns true if any account is the bpf upgradeable loader
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
    __D: Deserializer<'de>, 
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
    __D: Deserializer<'de>, 
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for Message
impl UnwindSafe for Message
Blanket Implementations
pub default fn visit_for_abi(
    &self, 
    digester: &mut AbiDigester
) -> Result<AbiDigester, DigestError>
pub default fn visit_for_abi(
    &self, 
    _digester: &mut AbiDigester
) -> Result<AbiDigester, DigestError>
Mutably borrows from an owned value. Read more