#[no_mangle]
pub unsafe extern "C" fn ergo_lib_ergo_box_new(
    value_ptr: ConstBoxValuePtr,
    creation_height: u32,
    contract_ptr: ConstContractPtr,
    tx_id_ptr: ConstTxIdPtr,
    index: u16,
    tokens_ptr: ConstCollectionPtr<Token>,
    ergo_box_out: *mut ErgoBoxPtr
) -> ErrorPtr
Expand description

Make a new box with: value - amount of money associated with the box contract - guarding contract, which should be evaluated to true in order to open(spend) this box creation_height - height when a transaction containing the box is created. tx_id - transaction id in which this box was “created” (participated in outputs) index - index (in outputs) in the transaction