transfer Coin Transaction
open suspend override fun transferCoinTransaction(from: AccountAddressInput, to: AccountAddressInput, amount: ULong, coinType: String, withFeePayer: Boolean, options: InputGenerateTransactionOptions): SimpleTransaction
Generates a Transaction that can be simulated and/or signed and submitted to the chain.
Return
SimpleTransaction object that can be simulated and/or signed and submitted to the chain.
Parameters
from
Sender's account address.
to
Recipient's account address.
amount
Amount of coins to transfer.
coin Type
Optional Coin type to transfer. Defaults to 0x1::aptos_coin::AptosCoin
with Fee Payer
Optional flag whether transaction is sponsored or not. Defaults to false
options
Optional parameters to generate the transaction. These include the max gas amount, gas unit price, and expiration time. Reasonable defaults are provided.