pub struct DecodedTransaction<'a> {
pub signature: Signature,
pub slot_index: SlotAndIndex,
pub transaction: VersionedTransaction,
pub dynamic_writable_accounts: Vec<Pubkey>,
pub dynamic_readonly_accounts: Vec<Pubkey>,
pub transaction_status_meta: &'a UiTransactionStatusMeta,
}Available on crate feature
solana-decoder only.Expand description
Decoded Transaction.
Fields§
§signature: SignatureSignature.
slot_index: SlotAndIndexSlot and index.
transaction: VersionedTransactionTransaction.
dynamic_writable_accounts: Vec<Pubkey>Dynamic writable accounts.
dynamic_readonly_accounts: Vec<Pubkey>Dynamic read-only accounts.
transaction_status_meta: &'a UiTransactionStatusMetaTransaction status meta.
Implementations§
Source§impl DecodedTransaction<'_>
impl DecodedTransaction<'_>
Sourcepub fn extract_cpi_events(
&self,
cpi_event_filter: &CPIEventFilter,
) -> Result<CPIEvents, DecodeError>
pub fn extract_cpi_events( &self, cpi_event_filter: &CPIEventFilter, ) -> Result<CPIEvents, DecodeError>
Extract Anchor CPI events.
Trait Implementations§
Source§impl TransactionAccess for DecodedTransaction<'_>
impl TransactionAccess for DecodedTransaction<'_>
Source§fn slot(&self) -> Result<u64, DecodeError>
fn slot(&self) -> Result<u64, DecodeError>
Gets the slot of the transaction where the events were generated.
Source§fn index(&self) -> Result<Option<usize>, DecodeError>
fn index(&self) -> Result<Option<usize>, DecodeError>
Gets the index in the block of the transaction where the events were generated. Read more
Source§fn signature(&self) -> Result<&Signature, DecodeError>
fn signature(&self) -> Result<&Signature, DecodeError>
Gets the signature of the transaction where the events were generated.
Source§fn num_signers(&self, is_writable: bool) -> Result<usize, DecodeError>
fn num_signers(&self, is_writable: bool) -> Result<usize, DecodeError>
Returns the number of signers.
Source§fn num_accounts(&self) -> usize
fn num_accounts(&self) -> usize
Returns the number of accounts.
Source§fn account_meta(&self, idx: usize) -> Result<Option<AccountMeta>, DecodeError>
fn account_meta(&self, idx: usize) -> Result<Option<AccountMeta>, DecodeError>
Gets account meta by index.
Source§fn num_address_table_lookups(&self) -> usize
fn num_address_table_lookups(&self) -> usize
Returns the number of address table lookups.
Source§fn address_table_lookup(&self, idx: usize) -> Option<&MessageAddressTableLookup>
fn address_table_lookup(&self, idx: usize) -> Option<&MessageAddressTableLookup>
Gets address table lookup by index.
Source§fn num_instructions(&self) -> usize
fn num_instructions(&self) -> usize
Returns the number of instructions.
Source§fn instruction(&self, idx: usize) -> Option<&CompiledInstruction>
fn instruction(&self, idx: usize) -> Option<&CompiledInstruction>
Gets instruction by index.
Source§fn transaction_status_meta(&self) -> Option<&UiTransactionStatusMeta>
fn transaction_status_meta(&self) -> Option<&UiTransactionStatusMeta>
Returns transaction status meta if available.
Auto Trait Implementations§
impl<'a> Freeze for DecodedTransaction<'a>
impl<'a> RefUnwindSafe for DecodedTransaction<'a>
impl<'a> Send for DecodedTransaction<'a>
impl<'a> Sync for DecodedTransaction<'a>
impl<'a> Unpin for DecodedTransaction<'a>
impl<'a> UnwindSafe for DecodedTransaction<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more