Skip to content
docs

Simulation

Simulation = { changes: BalanceChange[]; gasUsed: bigint[]; status: "ok"; } | { callIndex: number; reason: string; status: "reverted"; } | { reason: string; status: "unavailable"; }

Defined in: index.ts:119

The simulation result: balance changes and gas, the call that reverted and why, or why simulation was unavailable.