v2

latestOpenAPI 3.1.0Apache 2.02026-07-31441011.7 MB
Virtual Environments

List Environments

List all multi-chain environments for the given account and project

get/public/v1/account/{accountSlug}/project/{projectSlug}/environments

Path parameters

accountSlugstring required

Account ID or slug

projectSlugstring required

Project ID or slug

Query parameters

pageinteger

Page number for pagination

per_pageinteger

Number of environments to return per page

Response

A successful response.

idstring uuid

Unique identifier of the environment

display_namestring

Display name of the environment

slugstring

URL-safe slug for the environment

descriptionstring

Description of the environment

created_atstring date-time

Timestamp when the environment was created

updated_atstring date-time

Timestamp when the environment was last updated

Example response

[
  {
    "id": "d4e5f6a7-b8c9-0123-def1-234567890123",
    "display_name": "My Multi-Chain Environment",
    "slug": "my-multi-chain-env",
    "description": "A multi-chain test environment spanning Mainnet and Optimism",
    "created_at": "2024-01-15T10:30:00Z",
    "updated_at": "2024-01-15T12:00:00Z",
    "networks": [
      {
        "id": "c3d4e5f6-a7b8-9012-cdef-123456789012",
        "network_id": "1",
        "network_name": "Mainnet",
        "network_type": "vnet",
        "block_number": "0x12c50f0",
        "region": "eu",
        "chain_config_overrides": {
          "chain_id": "1"
        },
        "explorer_config": {
          "enabled": true,
          "verification_visibility": "abi"
        },
        "accounts": [
          {
            "address": "0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266"
          }
        ]
      }
    ],
    "bridge_config": {
      "enabled": true,
      "relay_mode": "autoRelay"
    },
    "active_instance": {
      "id": "b2c3d4e5-f6a7-8901-bcde-f12345678901",
      "created_at": "2024-01-15T10:30:00Z",
      "updated_at": "2024-01-15T12:00:00Z",
      "bridge_config": {
        "enabled": true,
        "relay_mode": "autoRelay"
      },
      "vnets": [
        {
          "id": "4010f442-c4d9-407d-aba1-7276e3312998",
          "display_name": "My Vnet 123",
          "slug": "my-vnet-123",
          "description": "This is a description of my Vnet",
          "status": "running",
          "created_at": "2024-01-15T10:30:00Z",
          "rpcs": [
            {
              "name": "Admin RPC",
              "url": "https://virtual.mainnet.rpc.tenderly.co/tenderly/my-project/my-multi-chain-env-9e7edf81"
            }
          ],
          "fork_config": {
            "network_id": 1,
            "block_number": "0x12c50f0"
          },
          "virtual_network_config": {
            "chain_config": {
              "chain_id": 1
            },
            "base_fee_per_gas": 1,
            "accounts": [
              {
                "address": "0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266"
              }
            ]
          },
          "rpc_config": {
            "rpc_name": {
              "name": "e2e-tests-example",
              "suffix": "9e7edf81-f6c2-49c2-855f-242ff9a6b09a"
            },
            "rpc_persistence_config": {
              "methods": [
                {
                  "method": "tenderly_simulateTransaction"
                }
              ]
            }
          },
          "runtime_config": {
            "running_duration": 3600
          },
          "sync_state_config": {
            "enabled": true
          },
          "explorer_page_config": {
            "enabled": true,
            "verification_visibility": "abi"
          }
        }
      ]
    }
  }
]