Skip to main content
The Tenderly REST API exposes endpoints for creating, listing, and managing Virtual Environments. For a walkthrough of how to call them from a script, see Create Virtual Environments via API. For the complete API surface, see the API Reference. All environment endpoints use the base URL:

Authentication

All requests require an X-Access-Key header. Generate a key from Account Settings → Authorization in the Tenderly Dashboard. See API tokens.

Create an environment

Creates a new environment with one or more networks. Both single-network and multi-network environments use this endpoint, pass one entry in network_configs for a single-network environment, or multiple entries for a multi-network one.

Request body

Single-network example

request.json

Multi-network example

request.json

Response

Returns the created environment object. The active_instance.vnets array contains one entry per network, each with its RPC endpoints.
response.json
The rpcs array on each entry contains the Admin RPC (full cheatcode access) and the Public RPC (standard JSON-RPC).

List environments

Returns all environments for the project.

Get an environment

Returns a single environment by ID, including its active_instance and RPC endpoints.

Delete an environment

Permanently deletes a single environment. Returns 204 No Content.

Batch delete environments

Permanently deletes multiple environments in one call. Pass the IDs in the request body.

List transactions

Returns transactions across all Virtual Environments in an environment instance. Supports pagination and optional filters by status, category, kind, and from/to address.

Get a transaction

Returns a single transaction from an environment instance by transaction hash.

Send a transaction

Executes a transaction on a specific Virtual Environment within an environment instance. State is preserved.

Simulate a transaction

Simulates a transaction without preserving state. Supports block overrides, state overrides, and a custom block number. Returns a detailed simulation result including call trace, state changes, and emitted events.

See also