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

Sanitized transaction and the hash of its message

Implementations§

Create a sanitized transaction from a sanitized versioned transaction. If the input transaction uses address tables, attempt to lookup the address for each table index.

Create a sanitized transaction from an un-sanitized versioned 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.

Return the list of addresses loaded from on-chain address lookup tables

If the transaction uses a durable nonce, return the pubkey of the nonce account

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The alignment of pointer.
The type for initializers.
Initializes a with the given initializer. Read more
Dereferences the given pointer. Read more
Mutably dereferences the given pointer. Read more
Drops the object pointed to by the given pointer. Read more
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
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.