Spend a fraction of coin balance to another account. Useful if needed to drain account balance completely, sending funds to another account (with fraction set to 1).
Fraction of balance to spend (between 0 and 1)
Address or name of recipient account
Options
// `fraction` * 100 = % of AE to be transferred (e.g. `0.42` for 42% or `1` for 100%)const { blockHeight } = await aeSdk.transferFunds( 0.42, 'ak_21A27UVVt3hDkBE5J7rhhqnH5YNb4Y1dqo4PnSybrH85pnWo7E',);console.log('Transaction mined at', blockHeight); Copy
// `fraction` * 100 = % of AE to be transferred (e.g. `0.42` for 42% or `1` for 100%)const { blockHeight } = await aeSdk.transferFunds( 0.42, 'ak_21A27UVVt3hDkBE5J7rhhqnH5YNb4Y1dqo4PnSybrH85pnWo7E',);console.log('Transaction mined at', blockHeight);
Spend a fraction of coin balance to another account. Useful if needed to drain account balance completely, sending funds to another account (with fraction set to 1).