simulateTransaction

Simulates the execution of a transaction.

Example

import { simulateTransaction } from "thirdweb";
const result = await simulateTransaction({
transaction,
});
function simulateTransaction(
options: SimulateOptions<abi, abiFn>,
): Promise<any>;

Parameters

The options for simulating the transaction.

Type

let options: SimulateOptions<abi, abiFn>;

Returns

let returnType: Promise<any>;

A promise that resolves to the result of the simulation.