Skip to main content

sol_parser_sdk/core/events/
raw_instruction.rs

1//! Lossless outer instruction payload, without assumptions about program behavior.
2use super::EventMetadata;
3use serde::{Deserialize, Serialize};
4use solana_sdk::pubkey::Pubkey;
5
6#[derive(Debug, Clone, Serialize, Deserialize)]
7pub struct RawInstructionEvent {
8    pub metadata: EventMetadata,
9    pub program_id: Pubkey,
10    pub instruction_index: usize,
11    /// Instruction account order, including duplicates. None means an unresolved
12    /// ALT address, never the System Program or an invented placeholder.
13    pub accounts: Vec<Option<Pubkey>>,
14    /// Indices into the transaction's static + loaded account key table.
15    pub account_indices: Vec<u8>,
16    /// Unmodified bytes, including any program-defined discriminator.
17    pub instruction_data: Vec<u8>,
18}