Skip to main content

with_orchard_value_balance

Function with_orchard_value_balance 

Source
pub fn with_orchard_value_balance(
    tx: Transaction,
    value_balance: i64,
) -> Transaction
Expand description

Returns a copy of tx whose Orchard bundle carries value_balance.

The bundle is owned by zcash_primitives and cannot be mutated in place, so this rebuilds the transaction. Panics if tx has no Orchard bundle.