Struct cardano_serialization_lib::tx_builder::TransactionBuilder [−][src]
pub struct TransactionBuilder { /* fields omitted */ }
Implementations
pub fn add_key_input(
&mut self,
hash: &Ed25519KeyHash,
input: &TransactionInput,
amount: &Value
)
pub fn add_script_input(
&mut self,
hash: &ScriptHash,
input: &TransactionInput,
amount: &Value
)
pub fn add_bootstrap_input(
&mut self,
hash: &ByronAddress,
input: &TransactionInput,
amount: &Value
)
pub fn fee_for_input(
&mut self,
address: &Address,
input: &TransactionInput,
amount: &Value
) -> Result<Coin, JsError>
pub fn fee_for_input(
&mut self,
address: &Address,
input: &TransactionInput,
amount: &Value
) -> Result<Coin, JsError>
calculates how much the fee would increase if you added a given output
calculates how much the fee would increase if you added a given output
pub fn new(
linear_fee: &LinearFee,
minimum_utxo_val: &Coin,
pool_deposit: &BigNum,
key_deposit: &BigNum,
max_value_size: u32,
max_tx_size: u32
) -> Self
does not include refunds or withdrawals
withdrawals and refunds
does not include fee
Warning: this function will mutate the /fee/ field
warning: sum of all parts of a transaction must equal 0. You cannot just set the fee to the min value and forget about it warning: min_fee may be slightly larger than the actual minimum fee (ex: a few lovelaces) this is done to simplify the library code, but can be fixed later
Trait Implementations
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
Mutably borrows from an owned value. Read more