SimulationResult that previews what should happen when the transaction executes.
When simulation data is available
Checksimulated and simulation on each pending tool:
Building a confirmation screen
Asset changes
assetChanges lists the expected token balance changes:
tokenSymboltokenNameformattedAmountrawAmountusdValuedirectionlogoUrl
Gas estimate
Failure prediction
Action type context
UseactionType to adapt the UI by operation type:
Cross-chain operations
For bridge-style previews,sourceChainId and destChainId identify the chains involved:
Fallback metadata
When asset changes are unavailable,actionMetadata still gives you structured UI hints:
Simulation is display-only
Simulation data should not drive execution logic. Always execute usingtool.input as the source of truth.