Function tari_wallet_ffi::wallet_get_fee_estimate [−][src]
#[no_mangle]pub unsafe extern "C" fn wallet_get_fee_estimate(
wallet: *mut TariWallet,
amount: c_ulonglong,
fee_per_gram: c_ulonglong,
num_kernels: c_ulonglong,
num_outputs: c_ulonglong,
error_out: *mut c_int
) -> c_ulonglong
Gets a fee estimate for an amount
Arguments
wallet
- The TariWallet pointer
amount
- The amount
fee_per_gram
- The fee per gram
num_kernels
- The number of transaction kernels
num_outputs
- The number of outputs
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 fee estimate in MicroTari if successful
Safety
None