Function tari_wallet_ffi::wallet_get_cancelled_transactions[][src]

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

Get the all Cancelled Transactions from a TariWallet. This function will also get cancelled pending inbound and outbound transaction and include them in this list by converting them to CompletedTransactions

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