pub struct SanitizedTransaction { /* private fields */ }
Expand description

Sanitized transaction and the hash of its message

Implementations

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.

Validate and return the account keys locked by this transaction

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 transaction signatures

Verify the precompiled programs in this transaction

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.