pub struct TransactionBuilder<'a> { /* private fields */ }Implementations§
Source§impl<'a> TransactionBuilder<'a>
impl<'a> TransactionBuilder<'a>
pub fn build() -> Self
Sourcepub fn instructions(&mut self, instructions: Vec<Instruction>) -> &mut Self
pub fn instructions(&mut self, instructions: Vec<Instruction>) -> &mut Self
Set the entire list of instructions for the transaction
Sourcepub fn instruction(&mut self, instruction: Instruction) -> &mut Self
pub fn instruction(&mut self, instruction: Instruction) -> &mut Self
Add an instruction to the transaction
Sourcepub fn recent_blockhash(&mut self, recent_blockhash: Hash) -> &mut Self
pub fn recent_blockhash(&mut self, recent_blockhash: Hash) -> &mut Self
Set the recent blockhash for the transaction
Sourcepub fn transaction(&self) -> Transaction
pub fn transaction(&self) -> Transaction
Build the transaction
Auto Trait Implementations§
impl<'a> Freeze for TransactionBuilder<'a>
impl<'a> RefUnwindSafe for TransactionBuilder<'a>
impl<'a> Send for TransactionBuilder<'a>
impl<'a> Sync for TransactionBuilder<'a>
impl<'a> Unpin for TransactionBuilder<'a>
impl<'a> UnwindSafe for TransactionBuilder<'a>
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