pub struct TransactionBuilder { /* private fields */ }Implementations§
Source§impl TransactionBuilder
impl TransactionBuilder
pub fn new() -> Self
pub fn tx_type(self, tx_type: TransactionType) -> Self
pub fn from(self, from: Address) -> Self
pub fn to(self, to: Address) -> Self
pub fn amount(self, amount: u128) -> Self
pub fn fee(self, fee: u128) -> Self
pub fn payload(self, payload: Vec<u8>) -> Self
pub fn nonce(self, nonce: u64) -> Self
pub fn transfer( self, from: Option<Address>, to: Address, amount: u128, fee: u128, nonce: u64, ) -> Self
pub fn build_unsigned(self) -> Result<Transaction>
pub fn build(self, wallet: &Wallet) -> Result<Transaction>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TransactionBuilder
impl RefUnwindSafe for TransactionBuilder
impl Send for TransactionBuilder
impl Sync for TransactionBuilder
impl Unpin for TransactionBuilder
impl UnsafeUnpin for TransactionBuilder
impl UnwindSafe for TransactionBuilder
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