Function tari_wallet_ffi::wallet_get_completed_transaction_by_id [−][src]
#[no_mangle]pub unsafe extern "C" fn wallet_get_completed_transaction_by_id(
wallet: *mut TariWallet,
transaction_id: c_ulonglong,
error_out: *mut c_int
) -> *mut TariCompletedTransaction
Get the TariCompletedTransaction from a TariWallet by its' TransactionId
Arguments
wallet
- The TariWallet pointer
transaction_id
- The TransactionId
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 TariCompletedTransaction
- returns the transaction, note that it returns ptr::null_mut() if
wallet is null, an error is encountered or if the transaction is not found
Safety
The completed_transaction_destroy
method must be called when finished with a TariCompletedTransaction to
prevent a memory leak