Skip to content
docs

TonSimulation

TonSimulation = { actionSuccess?: boolean; emulated: boolean; exitCode?: number; fees: TonFees; ok: true; risk?: TonRisk; source: TonSimulationSource; warnings: string[]; } | { aborted?: boolean; emulated: true; exitCode?: number; fees?: TonFees; ok: false; reason: string; risk?: TonRisk; source: Exclude<TonSimulationSource, "estimate-only">; warnings: string[]; }

Defined in: wallet-ton/src/types.ts:174

Outcome of a simulation: the fees and, when emulated, whether the wallet transaction and its actions succeeded.