iota_wallet_switch_network
Change the IOTA wallet's active blockchain network between mainnet, testnet, and devnet for different transaction environments.
Instructions
Switch between mainnet, testnet, and devnet
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| network | Yes | Target network |
Implementation Reference
- src/index.ts:173-180 (handler)The handler for iota_wallet_switch_network, which calls the wallet endpoint /switch-network.
server.tool( "iota_wallet_switch_network", "Switch between mainnet, testnet, and devnet", { network: z.enum(["mainnet", "testnet", "devnet"]).describe("Target network"), }, async ({ network }) => text(await wallet("/switch-network", "POST", { network })) );