deploy_contract
Deploy a smart contract to any EVM-compatible network by providing bytecode, constructor arguments, and a private key. Specify the network, gas limit, and ETH value to complete deployment.
Instructions
Deploy a smart contract from bytecode and constructor arguments
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"bytecode": "<bytecode>",
"privateKey": "<privateKey>"
},
"name": "deploy_contract"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| abi | No | Contract ABI (required if constructor has arguments) | |
| value | No | ETH value to send with deployment (in wei) | |
| network | No | Network name (e.g. 'bsc', 'opbnb', 'ethereum', 'base', etc.) or chain ID. Supports others main popular networks. Defaults to BSC mainnet. | bsc |
| bytecode | Yes | Contract bytecode (hex string starting with 0x) | |
| gasLimit | No | Gas limit for deployment | |
| privateKey | Yes | Private key for deployment | |
| constructorArgs | No | Constructor arguments |