Struct solana_sdk::transaction::SanitizedTransaction [−][src]
pub struct SanitizedTransaction { /* fields omitted */ }
Expand description
Sanitized transaction and the hash of its message
Implementations
pub fn try_create(
tx: VersionedTransaction,
message_hash: Hash,
is_simple_vote_tx: Option<bool>,
address_loader: impl Fn(&Message) -> Result<LoadedAddresses>
) -> Result<Self>
pub fn try_create(
tx: VersionedTransaction,
message_hash: Hash,
is_simple_vote_tx: Option<bool>,
address_loader: impl Fn(&Message) -> Result<LoadedAddresses>
) -> Result<Self>
Create a sanitized transaction from an unsanitized transaction. If the input transaction uses address tables, attempt to lookup the address for each table index.
Create a sanitized transaction from a legacy transaction. Used for tests only.
Return the first signature for this transaction.
Notes:
Sanitized transactions must have at least one signature because the
number of signatures must be greater than or equal to the message header
value num_required_signatures
which must be greater than 0 itself.
Return the list of signatures for this transaction
Return the signed message
Return the hash of the signed message
Returns true if this transaction is a simple vote
Convert this sanitized transaction into a versioned transaction for recording in the ledger.
pub fn get_account_locks(
&self,
demote_program_write_locks: bool
) -> TransactionAccountLocks<'_>
pub fn get_account_locks(
&self,
demote_program_write_locks: bool
) -> TransactionAccountLocks<'_>
Return the list of accounts that must be locked during processing this transaction.
If the transaction uses a durable nonce, return the pubkey of the nonce account
Verify the length of signatures matches the value in the message header
Verify the precompiled programs in this transaction
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for SanitizedTransaction
impl Send for SanitizedTransaction
impl Sync for SanitizedTransaction
impl Unpin for SanitizedTransaction
impl UnwindSafe for SanitizedTransaction
Blanket Implementations
Mutably borrows from an owned value. Read more