[−][src]Struct exonum_btc_anchoring::btc::BtcAnchoringTransactionBuilder
Builder for the anchoring transactions.
Methods
impl BtcAnchoringTransactionBuilder
[src]
pub fn new(redeem_script: &RedeemScript) -> BtcAnchoringTransactionBuilder
[src]
Creates a new btc anchoring transaction builder for the given redeem script.
pub fn transit_to(&mut self, script: Script)
[src]
Marks anchoring transaction as transition to the given address.
pub fn prev_tx(&mut self, tx: Transaction) -> Result<(), BuilderError>
[src]
Sets an transaction which corresponding unspent output will use as input for the following anchoring transaction.
pub fn recover(&mut self, last_tx: Hash)
[src]
Set a transaction identifier of the latest transaction of the corrupted anchoring chain.
pub fn additional_funds(&mut self, tx: Transaction) -> Result<(), BuilderError>
[src]
Add an additional funding transaction which corresponding unspent output will use as additional input for the following anchoring transaction.
pub fn fee(&mut self, fee: u64)
[src]
Sets the fee per byte value.
pub fn payload(&mut self, block_height: Height, block_hash: Hash)
[src]
Sets the anchoring transaction payload.
pub fn create(self) -> Result<(Transaction, Vec<Transaction>), BuilderError>
[src]
Finalizes the anchoring transaction and returns it and also the list of input transactions.
Trait Implementations
Auto Trait Implementations
impl Send for BtcAnchoringTransactionBuilder
impl Sync for BtcAnchoringTransactionBuilder
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Erased for T
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
U: TryFrom<T>,