createAccountTransferEntry static method

AptosTransactionEntryFunction createAccountTransferEntry(
  1. AptosTransferParams transfer
)

Creates an Aptos transaction entry for transferring coins to an account.

Implementation

static AptosTransactionEntryFunction createAccountTransferEntry(
    AptosTransferParams transfer) {
  return AptosTransactionEntryFunction(
      moduleId: AptosConstants.systemFrameworkAccountModuleId,
      functionName: AptosConstants.transferFunctionName,
      args: [transfer.destination, MoveU64(transfer.apt)]);
}