Skip to main content

Sui Transaction

Define and simulate Sui Transaction Blocks (PTBs/TXBs) using the Aeon SDK’s AeonClient.

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

// Example of queuing a Sui transaction simulation
const aeonClient = new AeonClient({
  simulationUrl: "...",
  suiNetwork: "mainnet", // Can be a default in AeonClient or specified here
});

const suiTxBlock = {
  /* ... Sui Transaction Block data ... */
  // This would typically be constructed using @mysten/sui.js TransactionBlock
};

aeonClient.requestSimulatedTransaction("sui", {
  senderAddress: "0xSUI_SENDER_ADDRESS",
  transactionBlock: suiTxBlock,
});

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