[][src]Struct exonum_btc_anchoring::btc::BtcAnchoringTransactionBuilder

pub struct BtcAnchoringTransactionBuilder { /* fields omitted */ }

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

impl Debug for BtcAnchoringTransactionBuilder[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Typeable for T where
    T: Any

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,