Function tari_wallet_ffi::wallet_coin_split[][src]

#[no_mangle]pub unsafe extern "C" fn wallet_coin_split(
    wallet: *mut TariWallet,
    amount: c_ulonglong,
    count: c_ulonglong,
    fee: c_ulonglong,
    msg: *const c_char,
    lock_height: c_ulonglong,
    error_out: *mut c_int
) -> c_ulonglong

This function will tell the wallet to do a coin split.

Arguments

wallet - The TariWallet pointer amount - The amount to split count - The number of times to split the amount fee - The transaction fee msg - Message for split lock_height - The number of bocks to lock the transaction for error_out - Pointer to an int which will be modified to an error code should one occur, may not be null. Functions as an out parameter.

Returns

c_ulonglong - Returns the transaction id.

Safety

None