Function tari_wallet_ffi::completed_transaction_get_status[][src]

#[no_mangle]pub unsafe extern "C" fn completed_transaction_get_status(
    transaction: *mut TariCompletedTransaction,
    error_out: *mut c_int
) -> c_int

Gets the status of a TariCompletedTransaction

Arguments

transaction - The pointer to a TariCompletedTransaction 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_int - Returns the status which corresponds to: | Value | Interpretation | |---|---| | -1 | TxNullError | | 0 | Completed | | 1 | Broadcast | | 2 | Mined | | 3 | Imported | | 4 | Pending |

Safety

None