# Web3 Tools - Contract Address Predictor (CREATE / CREATE2)

> Web3 Tools - Contract Address Predictor (CREATE / CREATE2) is a paid API for AI agents from web3-tools.x402tookit.com, paid per call via x402, $0.02/call, status unknown (last checked 2026-10-21).

Predicts the Ethereum contract address that will be deployed using either CREATE (deployer + nonce) or CREATE2 (deployer + salt + init code or its hash).

## Facts

- Endpoint: GET https://web3-tools.x402tookit.com/contract-address?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-21
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/web3-tools-contract-address-predictor-create-create2-63160e6a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_940hYXyViQAlia8JnFjCf

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability web3-tools-contract-address-predictor-create-create2-63160e6a
```

Example prompt: What contract address will be deployed using CREATE2 from deployer 0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045 with salt 0x0000000000000000000000000000000000000000000000000000000000000001 and init code hash 0xabc123...?

## When to prefer this

Use this endpoint when you need to deterministically calculate a smart contract's deployment address before it is deployed on-chain, either via the standard CREATE opcode (using deployer + nonce) or via the CREATE2 opcode (using deployer + salt + init code or its keccak256 hash). Prefer this over manual RLP/hash calculations to avoid errors.

## Known failure modes

- Missing deployer address returns validation error
- Invalid deployer address format (not 0x + 40 hex) returns error
- CREATE2 called without salt or without initCode/initCodeHash returns error
- Nonce must be a whole number string; non-integer values fail
- initCodeHash must be a valid 32-byte hex string

## How this service works

Predict a contract address: CREATE from deployer and nonce, or CREATE2 from deployer, salt and init code (or its hash).

## Output

Returns the predicted contract address along with the deployment mode (CREATE or CREATE2), the deployer address, the nonce (if CREATE), and a summary explaining how the address was derived.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "deployer"
     ],
     "properties": {
      "salt": {
       "type": "string",
       "description": "32-byte hex salt for CREATE2"
      },
      "nonce": {
       "type": "string",
       "description": "Deployer nonce for CREATE (whole number)"
      },
      "deployer": {
       "type": "string",
       "description": "Deploying address (0x + 40 hex)"
      },
      "initCode": {
       "type": "string",
       "description": "Init code hex for CREATE2 (or give initCodeHash)"
      },
      "initCodeHash": {
       "type": "string",
       "description": "keccak256 of the init code (32-byte hex)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "asOf": {
       "type": [
        "null",
        "string"
       ]
      },
      "mode": {
       "type": [
        "null",
        "string"
       ]
      },
      "nonce": {
       "type": [
        "null",
        "string"
       ]
      },
      "source": {
       "type": [
        "null",
        "string"
       ]
      },
      "address": {
       "type": [
        "null",
        "string"
       ]
      },
      "reasons": {
       "type": [
        "array",
        "null"
       ],
       "items": {
        "type": "string"
       }
      },
      "summary": {
       "type": [
        "null",
        "string"
       ]
      },
      "verdict": {
       "type": [
        "null",
        "string"
       ]
      },
      "degraded": {
       "type": [
        "boolean",
        "null"
       ]
      },
      "deployer": {
       "type": [
        "null",
        "string"
       ]
      },
      "disclaimer": {
       "type": [
        "null",
        "string"
       ]
      },
      "notChecked": {
       "type": [
        "array",
        "null"
       ],
       "items": {
        "type": "string"
       }
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/web3-tools-contract-address-predictor-create-create2-63160e6a/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from web3-tools.x402tookit.com](https://www.zero.xyz/host/web3-tools.x402tookit.com/llms.txt)
