upgrade_proxy
Upgrade a proxy contract to a new implementation address on supported EVM networks. Specify proxy type, private key, and optional calldata for post-upgrade calls.
Instructions
Upgrade a proxy contract to a new implementation address
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| network | No | Network name (e.g. 'bsc', 'opbnb', 'ethereum', 'base', etc.) or chain ID. Supports others main popular networks. Defaults to BSC mainnet. | bsc |
| proxyType | Yes | Type of proxy | |
| privateKey | Yes | Private key for upgrade | |
| proxyAddress | Yes | Address of the proxy contract | |
| upgradeCalldata | No | Calldata for post-upgrade call | |
| callAfterUpgrade | No | Whether to call a function after upgrade | |
| proxyAdminAddress | No | ProxyAdmin address (for transparent proxies) | |
| newImplementationAddress | Yes | Address of the new implementation |