Environment Operations
Tools for switching between Andromeda network environments.
Note: Environment tools support the optional
userIdparameter for session persistence. Include it in every call to maintain configuration across reconnections.
switch_environment
Switch between Andromeda environments (testnet, mainnet, devnet).
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
environment | string | Yes | The environment to switch to: testnet, mainnet, or devnet |
userId | string | No | Session identifier for persistent state |
Environments
| Environment | Description | Use Case |
|---|---|---|
testnet | Galileo testnet | Development and testing with test tokens |
mainnet | Andromeda mainnet | Production deployments with real assets |
devnet | Development network | Early feature testing and development |
Example
{
"environment": "testnet"
}Notes
- Switching environments will reset your chain connection
- Wallet connections may need to be re-established
- Each environment has its own set of available chains