Send simple transactions

Sends a simple transaction object using the current wallet's account.

This function is designed for advanced use cases where you manually build a transaction and want to submit it to the Aptos network.

📘 Need help building a transaction? Refer to the official Aptos documentation here: Building Transactions with TypeScript SDK

Build and send a "transfer 1 APT" transaction

const RECIPIENT_ADDRESS = "...";
const transactionHash = await wallet.sendSimpleTransaction({
  sender: sender.accountAddress,
  data: {
    function: "0x1::aptos_account::transfer",
    functionArguments: [RECIPIENT_ADDRESS, 1_00_000_000], // 1 APT
  },
});

Last updated