[−][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 an anchoring transaction as the 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 an input for the following anchoring transaction.
pub fn recover(&mut self, last_tx: Sha256d)
[src]
Sets a transaction identifier of the latest transaction of the corrupted anchoring chain.
pub fn additional_funds(&mut self, tx: Transaction) -> Result<(), BuilderError>
[src]
Adds 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 with the list of input transactions.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for BtcAnchoringTransactionBuilder
impl Send for BtcAnchoringTransactionBuilder
impl Sync for BtcAnchoringTransactionBuilder
impl Unpin for BtcAnchoringTransactionBuilder
impl UnwindSafe for BtcAnchoringTransactionBuilder
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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> Typeable for T where
T: Any,
T: Any,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,