Deploy a contract (testnet, opt-in)
zenith_deployDeploy contracts to Zenith testnet from Solidity source, Foundry/Hardhat artifacts, or bytecode; simulate cost first, then confirm to execute with automatic verification.
Instructions
Deploys a contract to Zenith testnet from a .sol file (compiled for Prague and verified automatically), a Foundry/Hardhat artifact or bytecode. Without confirm it only simulates and shows the cost. Requires a testnet key configured by the user; refuses any other chain and respects the session spend cap.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "zenith_deploy"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| abi | No | JSON ABI, with bytecode | |
| runs | No | ||
| verify | No | ||
| confirm | No | Set true only after the user approved the simulated plan | |
| bytecode | No | ||
| optimize | No | ||
| evmVersion | No | prague | |
| sourcePath | No | Path to a .sol file | |
| artifactPath | No | Foundry out/X.sol/X.json or Hardhat artifact | |
| contractName | No | ||
| compilerVersion | No | ||
| constructorArgs | No |