Struct miden_objects::transaction::PreparedTransaction
source · pub struct PreparedTransaction { /* private fields */ }Expand description
A struct that contains all of the data required to execute a transaction.
This includes:
- A an executable program which defines the transaction.
- An optional transaction script.
- A set of inputs against which the transaction program should be executed.
Implementations§
source§impl PreparedTransaction
impl PreparedTransaction
sourcepub fn new(
program: Program,
tx_inputs: TransactionInputs,
tx_args: TransactionArgs
) -> Self
pub fn new( program: Program, tx_inputs: TransactionInputs, tx_args: TransactionArgs ) -> Self
Returns a new PreparedTransaction instantiated from the provided executable transaction program and inputs required to execute this program.
sourcepub fn block_header(&self) -> &BlockHeader
pub fn block_header(&self) -> &BlockHeader
Returns the block header for this transaction.
sourcepub fn input_notes(&self) -> &InputNotes
pub fn input_notes(&self) -> &InputNotes
Returns the notes to be consumed in this transaction.
sourcepub fn tx_args(&self) -> &TransactionArgs
pub fn tx_args(&self) -> &TransactionArgs
Returns a reference to the transaction args.
sourcepub fn tx_inputs(&self) -> &TransactionInputs
pub fn tx_inputs(&self) -> &TransactionInputs
Returns a reference to the inputs for this transaction.
sourcepub fn into_parts(self) -> (Program, TransactionInputs, TransactionArgs)
pub fn into_parts(self) -> (Program, TransactionInputs, TransactionArgs)
Consumes the prepared transaction and returns its parts.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PreparedTransaction
impl RefUnwindSafe for PreparedTransaction
impl Send for PreparedTransaction
impl Sync for PreparedTransaction
impl Unpin for PreparedTransaction
impl UnwindSafe for PreparedTransaction
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