Skip to main content

Bridge Transaction

Define and simulate transactions for bridging transactions across chains using the Aeon SDK’s AeonClient.

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

// Example: Queuing a dedicated bridge simulation operation
const aeonClient = new AeonClient({ simulationUrl: "..." });

aeonClient.requestSimulatedTransaction("bridge", {
  sourceChain: "ethereum",
  destinationChain: "polygon",
  tokenAddressOnSource: "0xSOURCE_TOKEN_ADDR",
  amount: "100000000000000000000", // 100 tokens with 18 decimals
  recipientAddressOnDest: "0xRECIPIENT_ON_DESTINATION",
  // ... other bridge specific params like slippage, bridge provider ID
});

// Later, to process and get the transaction for the source leg:
// const assembledBridgeTxData = await aeonClient.build();