Skip to main content
POST
JavaScript

Authorizations

X-Access-Key
string
header
required

An API key is a token that a client provides when making API calls. Send it as the X-Access-Key request header on any endpoint:

Learn how to generate API access tokens at Tenderly Docs.

Path Parameters

accountSlug
string
required

Account slug of the user

projectSlug
string
required

Project slug of the account

Body

application/json

Simulate transaction bundle payload

simulations
simulations · object[]
required

Array of transactions to simulate sequentially. Each subsequent transaction sees the state changes from all previous transactions. If a simulation fails, all following simulations in the sequence will not be executed.

block_number
number

Block number to use for all simulations in the bundle. Individual simulations can override this.

simulation_type
enum<string>

Default simulation type for all simulations in the bundle. Individual simulations can override this.

Available options:
full,
quick,
abi
state_objects
state_objects · object

Initial state overrides applied before the first simulation. The key is the contract address, and the value is an object that contains overrides of nonce, code, balance, or storage.

save
boolean

Save all simulations in the bundle to the dashboard.

Response

A successful response.

Bundle simulation response containing an array of simulation results, one per input simulation. Order matches the input simulations array. Each result reflects the cumulative state from previous simulations.

simulation_results
simulation_results · object[]
required

Array of simulation results, one per input simulation. Order matches the input simulations array. Each result reflects the cumulative state changes from all previous simulations in the bundle.