Skip to main content

Aptos Transaction

Define and simulate Aptos transactions using the Aeon SDK’s AeonClient.

AeonClient.requestSimulatedTransaction("aptos", params) (Conceptual)

// Example of queuing an Aptos transaction simulation
const aeonClient = new AeonClient({ simulationUrl: "..." });

const aptosPayload = {
  function: "0x1::coin::transfer",
  type_arguments: ["0x1::aptos_coin::AptosCoin"],
  arguments: ["0xRECIPIENT_ADDRESS", "100000000"],
};

aeonClient.requestSimulatedTransaction("aptos", {
  senderAddress: "0xAPTOS_SENDER_ADDRESS",
  payload: aptosPayload,
  // sequenceNumber, maxGasAmount can be optional if backend handles estimation
});

// Later, to process the queue and get the assembled TXB:
// const assembledTxData = await aeonClient.build();