pub struct RuntimeTransaction<T> { /* private fields */ }
Implementations§
Source§impl RuntimeTransaction<SanitizedTransaction>
impl RuntimeTransaction<SanitizedTransaction>
pub fn try_from( statically_loaded_runtime_tx: RuntimeTransaction<SanitizedVersionedTransaction>, address_loader: impl AddressLoader, reserved_account_keys: &HashSet<Pubkey>, ) -> Result<Self>
Trait Implementations§
Source§impl<T: Debug> Debug for RuntimeTransaction<T>
impl<T: Debug> Debug for RuntimeTransaction<T>
Source§impl<T> Deref for RuntimeTransaction<T>
impl<T> Deref for RuntimeTransaction<T>
Source§impl<T: SVMMessage> SVMMessage for RuntimeTransaction<T>
impl<T: SVMMessage> SVMMessage for RuntimeTransaction<T>
Source§fn num_total_signatures(&self) -> u64
fn num_total_signatures(&self) -> u64
Returns the total number of signatures in the message.
This includes required transaction signatures as well as any
pre-compile signatures that are attached in instructions.
Source§fn num_write_locks(&self) -> u64
fn num_write_locks(&self) -> u64
Returns the number of requested write-locks in this message.
This does not consider if write-locks are demoted.
Source§fn recent_blockhash(&self) -> &Hash
fn recent_blockhash(&self) -> &Hash
Return the recent blockhash.
Source§fn num_instructions(&self) -> usize
fn num_instructions(&self) -> usize
Return the number of instructions in the message.
Source§fn instructions_iter(&self) -> impl Iterator<Item = SVMInstruction<'_>>
fn instructions_iter(&self) -> impl Iterator<Item = SVMInstruction<'_>>
Return an iterator over the instructions in the message.
Source§fn program_instructions_iter(
&self,
) -> impl Iterator<Item = (&Pubkey, SVMInstruction<'_>)>
fn program_instructions_iter( &self, ) -> impl Iterator<Item = (&Pubkey, SVMInstruction<'_>)>
Return an iterator over the instructions in the message, paired with
the pubkey of the program.
Source§fn account_keys(&self) -> AccountKeys<'_>
fn account_keys(&self) -> AccountKeys<'_>
Return the account keys.
Source§fn is_writable(&self, index: usize) -> bool
fn is_writable(&self, index: usize) -> bool
Returns
true
if the account at index
is writable.Source§fn is_invoked(&self, key_index: usize) -> bool
fn is_invoked(&self, key_index: usize) -> bool
Returns true if the account at the specified index is invoked as a
program in top-level instructions of this message.
Source§fn num_lookup_tables(&self) -> usize
fn num_lookup_tables(&self) -> usize
Get the number of lookup tables.
Source§fn message_address_table_lookups(
&self,
) -> impl Iterator<Item = SVMMessageAddressTableLookup<'_>>
fn message_address_table_lookups( &self, ) -> impl Iterator<Item = SVMMessageAddressTableLookup<'_>>
Get message address table lookups used in the message
Source§fn is_instruction_account(&self, key_index: usize) -> bool
fn is_instruction_account(&self, key_index: usize) -> bool
Returns true if the account at the specified index is an input to some
program instruction in this message.
Source§fn get_durable_nonce(&self) -> Option<&Pubkey>
fn get_durable_nonce(&self) -> Option<&Pubkey>
If the message uses a durable nonce, return the pubkey of the nonce account
Source§impl<T: SVMTransaction> SVMTransaction for RuntimeTransaction<T>
impl<T: SVMTransaction> SVMTransaction for RuntimeTransaction<T>
Source§impl<T> StaticMeta for RuntimeTransaction<T>
impl<T> StaticMeta for RuntimeTransaction<T>
fn message_hash(&self) -> &Hash
fn is_simple_vote_transaction(&self) -> bool
fn signature_details(&self) -> &TransactionSignatureDetails
fn compute_budget_limits( &self, _feature_set: &FeatureSet, ) -> Result<ComputeBudgetLimits>
impl<T: SVMMessage> DynamicMeta for RuntimeTransaction<T>
Auto Trait Implementations§
impl<T> Freeze for RuntimeTransaction<T>where
T: Freeze,
impl<T> RefUnwindSafe for RuntimeTransaction<T>where
T: RefUnwindSafe,
impl<T> Send for RuntimeTransaction<T>where
T: Send,
impl<T> Sync for RuntimeTransaction<T>where
T: Sync,
impl<T> Unpin for RuntimeTransaction<T>where
T: Unpin,
impl<T> UnwindSafe for RuntimeTransaction<T>where
T: UnwindSafe,
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 moreSource§impl<Container> Signer for Container
impl<Container> Signer for Container
Source§fn pubkey(&self) -> Pubkey
fn pubkey(&self) -> Pubkey
Infallibly gets the implementor’s public key. Returns the all-zeros
Pubkey
if the implementor has none.Source§fn try_pubkey(&self) -> Result<Pubkey, SignerError>
fn try_pubkey(&self) -> Result<Pubkey, SignerError>
Fallibly gets the implementor’s public key
Source§fn sign_message(&self, message: &[u8]) -> Signature
fn sign_message(&self, message: &[u8]) -> Signature
Infallibly produces an Ed25519 signature over the provided
message
bytes. Returns the all-zeros Signature
if signing is not possible.Source§fn try_sign_message(&self, message: &[u8]) -> Result<Signature, SignerError>
fn try_sign_message(&self, message: &[u8]) -> Result<Signature, SignerError>
Fallibly produces an Ed25519 signature over the provided
message
bytes.Source§fn is_interactive(&self) -> bool
fn is_interactive(&self) -> bool
Whether the implementation requires user interaction to sign