compute_create2_address
Compute the deterministic contract address for CREATE2 deployments using factory, salt, and init code hash.
Instructions
Compute deterministic contract address for CREATE2 deployment
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": {
"factory": "<factory>",
"salt": "<salt>",
"initCodeHash": "<initCodeHash>"
},
"name": "compute_create2_address"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| salt | Yes | 32-byte salt (hex) or string to hash | |
| factory | Yes | Factory/deployer contract address | |
| initCodeHash | Yes | Keccak256 hash of init code (bytecode + constructor args) |