pub struct TxBuilder { /* private fields */ }
Expand description
Wrapper over lwk_wollet::TxBuilder
Implementations§
source§impl TxBuilder
impl TxBuilder
sourcepub fn add_lbtc_recipient(
&self,
address: &Address,
satoshi: u64
) -> Result<(), LwkError>
pub fn add_lbtc_recipient( &self, address: &Address, satoshi: u64 ) -> Result<(), LwkError>
Add a recipient receiving L-BTC
sourcepub fn add_recipient(
&self,
address: &Address,
satoshi: u64,
asset: &AssetId
) -> Result<(), LwkError>
pub fn add_recipient( &self, address: &Address, satoshi: u64, asset: &AssetId ) -> Result<(), LwkError>
Add a recipient receiving the given asset
sourcepub fn add_burn(&self, satoshi: u64, asset: &AssetId) -> Result<(), LwkError>
pub fn add_burn(&self, satoshi: u64, asset: &AssetId) -> Result<(), LwkError>
Burn satoshi units of the given asset
sourcepub fn issue_asset(
&self,
asset_sats: u64,
asset_receiver: Option<Arc<Address>>,
token_sats: u64,
token_receiver: Option<Arc<Address>>,
contract: Option<Arc<Contract>>
) -> Result<(), LwkError>
pub fn issue_asset( &self, asset_sats: u64, asset_receiver: Option<Arc<Address>>, token_sats: u64, token_receiver: Option<Arc<Address>>, contract: Option<Arc<Contract>> ) -> Result<(), LwkError>
Issue an asset, wrapper of lwk_wollet::TxBuilder::issue_asset()
sourcepub fn reissue_asset(
&self,
asset_to_reissue: AssetId,
satoshi_to_reissue: u64,
asset_receiver: Option<Arc<Address>>,
issuance_tx: Option<Arc<Transaction>>
) -> Result<(), LwkError>
pub fn reissue_asset( &self, asset_to_reissue: AssetId, satoshi_to_reissue: u64, asset_receiver: Option<Arc<Address>>, issuance_tx: Option<Arc<Transaction>> ) -> Result<(), LwkError>
Reissue an asset, wrapper of lwk_wollet::TxBuilder::reissue_asset()
Trait Implementations§
source§impl<T> LowerReturn<T> for TxBuilder
impl<T> LowerReturn<T> for TxBuilder
§type ReturnType = <TxBuilder as FfiConverterArc<UniFfiTag>>::FfiType
type ReturnType = <TxBuilder as FfiConverterArc<UniFfiTag>>::FfiType
The type that should be returned by scaffolding functions for this type. Read more
source§fn lower_return(obj: Self) -> Result<Self::ReturnType, RustBuffer>
fn lower_return(obj: Self) -> Result<Self::ReturnType, RustBuffer>
Lower this value for scaffolding function return Read more
const TYPE_ID_META: MetadataBuffer = _
Auto Trait Implementations§
impl !Freeze for TxBuilder
impl RefUnwindSafe for TxBuilder
impl Send for TxBuilder
impl Sync for TxBuilder
impl Unpin for TxBuilder
impl UnwindSafe for TxBuilder
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more