Function tari_wallet_ffi::wallet_send_transaction[][src]

#[no_mangle]pub unsafe extern "C" fn wallet_send_transaction(
    wallet: *mut TariWallet,
    dest_public_key: *mut TariPublicKey,
    amount: c_ulonglong,
    fee_per_gram: c_ulonglong,
    message: *const c_char,
    error_out: *mut c_int
) -> c_ulonglong

Sends a TariPendingOutboundTransaction

Arguments

wallet - The TariWallet pointer dest_public_key - The TariPublicKey pointer of the peer amount - The amount fee_per_gram - The transaction fee message - The pointer to a char array 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

unsigned long long - Returns 0 if unsuccessful or the TxId of the sent transaction if successful

Safety

None