Struct wallet_core::TxBuilder
source · pub struct TxBuilder<P: Payload> {
builder: TransactionBuilder<P, AccountSecretKey, WitnessAccountData, Witness>,
}
Fields§
§builder: TransactionBuilder<P, AccountSecretKey, WitnessAccountData, Witness>
Implementations§
source§impl<P: Payload> TxBuilder<P>
impl<P: Payload> TxBuilder<P>
pub fn new(settings: Settings, payload: P) -> Self
pub fn prepare_tx( self, account_id_hex: String, spending_counter: SpendingCounter ) -> Result<Self, Error>
pub fn get_sign_data(&self) -> Result<WitnessAccountData, Error>
pub fn build_tx( self, auth: P::Auth, signature: &[u8], fragment_build_fn: impl FnOnce(Transaction<P>) -> Fragment ) -> Result<Fragment, Error>
pub fn sign_tx( self, auth: P::Auth, account_bytes: &[u8], fragment_build_fn: impl FnOnce(Transaction<P>) -> Fragment ) -> Result<Fragment, Error>
Auto Trait Implementations§
impl<P> !RefUnwindSafe for TxBuilder<P>
impl<P> !Send for TxBuilder<P>
impl<P> !Sync for TxBuilder<P>
impl<P> Unpin for TxBuilder<P>where P: Unpin,
impl<P> !UnwindSafe for TxBuilder<P>
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