Fork Virtual Environment
Fork a Virtual Environment
Authorizations
An API key is a token that a client provides when making API calls. The key can be sent as a request header:
curl 'https://api.tenderly.co/api/v1/account/${TENDERLY_ACCOUNT_SLUG}/project/${TENDERLY_PROJECT_SLUG}/simulate' \
-H 'X-Access-Key: ${TENDERLY_ACCESS_KEY}' \
...
Learn how to generate API access tokens at Tenderly Docs.
Path Parameters
Account slug of the user/organization Virtual Environment belongs to
Project slug of the account
Body
Fork a Virtual Environment request
VNet ID is the id of the VNet that will be forked.
"f4b3b3b3-4b3b-4b3b-4b3b-4b3b3b3b3b3b"
Slug of the Virtual Environment (string of dash-separated alphanumerics).
"my-forked-testnet"
Display name of Virtual Environment. Defaults to forked-{original vnet name}.
"Forked TestNet"
Description for Virtual Environment.
"Virtual Environment for mainnet"
Sets a sync state of the forked VNet
true
Wait is a flag that indicates if the request should wait for the forking process to finish or letting it complete asynchronously.
true
Response
A successful response.
An object with details about Virtual Environment
ID of the Virtual Environment.
"4010f442-c4d9-407d-aba1-7276e3312998"
Slug of the Virtual Environment (string of dash-separated alphanumerics).
"my-staging-vnet-2"
Display name of Virtual Environment
"Virtual Environment mainnet"
Description for Virtual Environment.
"Virtual Environment for mainnet"
Configuration of Virtual Environment fork
{
"network_id": 1,
"block_number": "0x12c50f0"
}
Configuration
{ "chain_config": { "chain_id": 1 } }
Configuration for sync state
{ "enabled": false }
Configuration for explorer page
{
"enabled": false,
"verification_visibility": "bytecode"
}
Rpc endpoints for Virtual Environment
[
{
"url": "https://virtual.mainnet.rpc.tenderly.co/7b7b53ee-611b-4d06-87ad-8f5606dfdc21",
"name": "Admin RPC"
}
]