interface SimulationData {
    assetChanges?: SimulationAssetChange[];
    balanceDiff?: SimulationBalanceDiff[];
    costPerUnit: string;
    error?: object;
    executionCost: number;
    logs: SimulationLog[];
    shareUrl?: string;
    simulationId?: string;
    stateDiff: SimulationStateDiff[];
    success: boolean;
    totalCost: string;
}

Properties

assetChanges?: SimulationAssetChange[]

Asset changes from the simulation

Example

[{"token_info":{"standard":"NativeCurrency","type":"Fungible","contract_address":"0x0000000000000000000000000000000000000000","symbol":"ETH","name":"Ether","logo":"https://coin-images.coingecko.com/coins/images/279/large/ethereum.png?1696501628","decimals":18,"dollar_value":"0"},"type":"Transfer","from":"0x0000000000000000000000000000000000000000","to":"0x00000000219ab540356cbb839cbe05303d7705fa","amount":"1","raw_amount":"1000000000000000000","dollar_value":"0","from_before_balance":"0x1278fba2fc8bfd518d","to_before_balance":"0x829b4ec2eed78acb84200"}]
balanceDiff?: SimulationBalanceDiff[]

Balance differences from the simulation

Example

[{"address":"0x0000000000000000000000000000000000000000","original":"340759134036041748877","dirty":"339759057341860188039","is_miner":false},{"address":"0x00000000219ab540356cBB839Cbe05303d7705Fa","original":"9868361015449101000000000","dirty":"9868362015449101000000000","is_miner":false}]
costPerUnit: string

Cost per unit (gas price, fee, etc.)

Example

"20000000000"
error?: object

Error information if simulation failed

Example

{"errorType":"execution_reverted","errorMessage":"Transaction reverted","revertReason":"Insufficient balance"}
executionCost: number

Transaction execution cost (gas in EVM, compute units in Solana, etc.)

Example

150000

Transaction logs/events from the simulation

Example

[{"name":"","address":"0x00000000219ab540356cbb839cbe05303d7705fa","data":"0x00000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000140000000000000000000000000000000000000000000000000000000000000018000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000030a20d2ba70419cb3922985488e339736ab32e6184f11708d2333f65b14f70cf47365b538c32eff237cdaf293ea2bcfb03000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000506965722054776f000000000000000000000000000000000000000000000000000000000000000800ca9a3b00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000506965722054776f0000000000000000000000000000000000000000000000000000000000000008e61a030000000000000000000000000000000000000000000000000000000000","topics":["0x649bbc62d0e31342afea4e5cd82d4049e7e1ee912fc0889aa790803be39038c5"]}]
shareUrl?: string

Shareable URL for the simulation (if available)

Example

"https://simulator.example.com/..."
simulationId?: string

Simulation ID (if provided by the simulation service)

Example

"7e8936af-485d-4aff-b487-6564830128ba"
stateDiff: SimulationStateDiff[]

State changes from the simulation

Example

[{"address":"0x00000000219ab540356cbb839cbe05303d7705fa","soltype":null,"original":null,"dirty":null,"raw":[{"address":"0x00000000219ab540356cbb839cbe05303d7705fa","key":"0x0000000000000000000000000000000000000000000000000000000000000000","original":"0x5e0221fc22d93c98e0c1ba43cad66f8ed0c423b355f548ecaecb8b9ac1e87000","dirty":"0x2103b2b3bed9441170c8483184139f999e1e3feef8d17840ac3082a394718f7e"},{"address":"0x00000000219ab540356cbb839cbe05303d7705fa","key":"0x0000000000000000000000000000000000000000000000000000000000000020","original":"0x0000000000000000000000000000000000000000000000000000000000031ae6","dirty":"0x0000000000000000000000000000000000000000000000000000000000031ae7"}]}]
success: boolean

Whether the simulation was successful

Example

true
totalCost: string

Total cost of the transaction

Example

"3000000000000000"