Type for transaction call simulation result.

interface TransactionSimulationResult {
    data: string;
    events: TransactionSimulationEvent[];
    gasUsed: number;
    reverted: boolean;
    transfers: Transfer[];
    vmError: string;
}

Properties

data: string

Data returned from the transaction simulation

Events emitted from the transaction simulation

gasUsed: number

Gas used from the transaction simulation

reverted: boolean

Boolean indicating if the transaction simulation reverted

transfers: Transfer[]

Transfers that occur from the transaction simulation

vmError: string

Error message from the transaction simulation if it reverted