Function ergo_lib_c_core::box_builder::ergo_box_candidate_builder_new
source ยท pub unsafe fn ergo_box_candidate_builder_new(
value_ptr: ConstBoxValuePtr,
contract_ptr: ConstContractPtr,
creation_height: u32,
builder_out: *mut ErgoBoxCandidateBuilderPtr,
) -> Result<(), Error>
Expand description
Create builder with required box parameters:
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.
It should not exceed height of the block, containing the transaction with this box.