Function tari_wallet_ffi::wallet_get_pending_outbound_transaction_by_id[][src]

#[no_mangle]pub unsafe extern "C" fn wallet_get_pending_outbound_transaction_by_id(
    wallet: *mut TariWallet,
    transaction_id: c_ulonglong,
    error_out: *mut c_int
) -> *mut TariPendingOutboundTransaction

Get the TariPendingOutboundTransaction 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 TariPendingOutboundTransaction - 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 pending_outbound_transaction_destroy method must be called when finished with a TariPendingOutboundtransaction to prevent a memory leak