pub struct TransactionBuilder {
pub transaction: Transaction,
pub utxos: Vec<UtxoEntry>,
pub used_utxos: Vec<UtxoEntry>,
}Fields§
§transaction: Transaction§utxos: Vec<UtxoEntry>§used_utxos: Vec<UtxoEntry>Implementations§
source§impl TransactionBuilder
impl TransactionBuilder
pub fn with_options_height(&mut self, height: i64) -> &mut Self
pub fn with_input(&mut self, input: &Input) -> &mut Self
pub fn with_observation( &mut self, o: &Observation, height: i64, address: &Address ) -> &mut Self
pub fn with_no_salt(&mut self) -> &mut Self
pub fn with_time(&mut self, time: Option<i64>) -> &mut Self
pub fn with_fee( &mut self, destination: &Address, amount: &CurrencyAmount ) -> RgResult<&mut Self>
pub fn with_utxo( &mut self, utxo_entry: &UtxoEntry ) -> Result<&mut Self, ErrorInfo>
pub fn with_maybe_currency_utxo( &mut self, utxo_entry: &UtxoEntry ) -> Result<&mut Self, ErrorInfo>
pub fn with_message( &mut self, msg: impl Into<String> ) -> Result<&mut Self, ErrorInfo>
pub fn with_address_info( &mut self, ai: AddressInfo ) -> Result<&mut Self, ErrorInfo>
pub fn with_output( &mut self, destination: &Address, amount: &CurrencyAmount ) -> &mut Self
pub fn with_contract_request_output( &mut self, destination: &Address, serialized_request: &Vec<u8> ) -> RgResult<&mut Self>
pub fn with_contract_deploy_output_and_predicate_input( &mut self, code: impl AsRef<[u8]>, c_amount: CurrencyAmount, use_predicate_input: bool ) -> RgResult<&mut Self>
pub fn with_last_output_deposit_swap(&mut self, btc_txid: String) -> &mut Self
pub fn with_unsigned_input( &mut self, utxo: UtxoEntry ) -> Result<&mut Self, ErrorInfo>
pub fn balance(&self) -> i64
pub fn build(&mut self) -> Result<Transaction, ErrorInfo>
pub fn with_output_peer_data( &mut self, destination: &Address, pd: PeerMetadata, height: i64 ) -> &mut Self
pub fn genesis_peer_data(&mut self) -> &mut Self
pub fn with_output_node_metadata( &mut self, destination: &Address, pd: NodeMetadata, height: i64 ) -> &mut Self
pub fn with_genesis_input(&mut self, address: &Address) -> &mut Self
pub fn with_remainder(&mut self) -> &mut Self
Auto Trait Implementations§
impl RefUnwindSafe for TransactionBuilder
impl Send for TransactionBuilder
impl Sync for TransactionBuilder
impl Unpin for TransactionBuilder
impl UnwindSafe for TransactionBuilder
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