Function tari_wallet_ffi::wallet_get_completed_transactions[][src]

#[no_mangle]pub unsafe extern "C" fn wallet_get_completed_transactions(
    wallet: *mut TariWallet,
    error_out: *mut c_int
) -> *mut TariCompletedTransactions

Get the TariCompletedTransactions from a TariWallet

Arguments

wallet - The TariWallet pointer 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

*mut TariCompletedTransactions - returns the transactions, note that it returns ptr::null_mut() if wallet is null or an error is encountered

Safety

The completed_transactions_destroy method must be called when finished with a TariCompletedTransactions to prevent a memory leak