Function ergo::ergo_lib_tx_builder_new
source · #[no_mangle]
pub unsafe extern "C" fn ergo_lib_tx_builder_new(
box_selection_ptr: ConstBoxSelectionPtr,
output_candidates_ptr: ConstCollectionPtr<ErgoBoxCandidate>,
current_height: u32,
fee_amount_ptr: ConstBoxValuePtr,
change_address_ptr: ConstAddressPtr,
tx_builder_out: *mut TxBuilderPtr,
)
Expand description
Creates new TxBuilder
box_selection
- selected input boxes
output_candidates
- output boxes to be “created” in this transaction,
current_height
- chain height that will be used in additionally created boxes (change, miner’s fee, etc.),
fee_amount
- miner’s fee,
change_address
- change (inputs - outputs) will be sent to this address,
will be given to miners,