pub trait TransactionBuilder: Send {
type TxType: Transaction;
Show 17 methods
// Required methods
fn build(self) -> Result<Self::TxType>;
fn fee_checked_from_tx(
&self,
params: &ConsensusParameters
) -> Option<TransactionFee>;
fn check_without_signatures(
&self,
block_height: u32,
parameters: &ConsensusParameters
) -> Result<()>;
fn set_maturity(self, maturity: u32) -> Self;
fn set_gas_price(self, gas_price: u64) -> Self;
fn set_gas_limit(self, gas_limit: u64) -> Self;
fn set_tx_params(self, tx_params: TxParameters) -> Self;
fn set_inputs(self, inputs: Vec<Input>) -> Self;
fn set_outputs(self, outputs: Vec<Output>) -> Self;
fn set_witnesses(self, witnesses: Vec<Witness>) -> Self;
fn set_consensus_parameters(
self,
consensus_parameters: ConsensusParameters
) -> Self;
fn inputs(&self) -> &Vec<Input>;
fn inputs_mut(&mut self) -> &mut Vec<Input>;
fn outputs(&self) -> &Vec<Output>;
fn outputs_mut(&mut self) -> &mut Vec<Output>;
fn witnesses(&self) -> &Vec<Witness>;
fn witnesses_mut(&mut self) -> &mut Vec<Witness>;
}