x402 Forge is part of Fizzlfizzl.eu ↗
x402 Forge Upgrade your toolBundlesCatalog

Catalog / evm-contract-address

EVM contract address calculator

Works out, without any network call, the address a contract gets when it is deployed with CREATE or CREATE2 under Ethereum's rules (Ethereum, Base, X Layer, Monad and other standard EVM chains); zkSync Era and ZK Stack chains derive addresses differently and are not covered.

Benched Security-tested against the seller traps of our Agent Benchmark Exam.

Buy $1.00

What it does

Computes a contract address offline with Ethereum's CREATE/CREATE2 rules, which Ethereum, Base, X Layer, Monad and other standard EVM chains follow; zkSync Era and ZK Stack chains derive addresses differently and are not covered. CREATE: keccak256(rlp([deployer, nonce]))[12:] with nonce 0 to 2^64-1 (EIP-2681) as a decimal or 0x hex string. CREATE2 (EIP-1014): keccak256(0xff ++ deployer ++ salt ++ keccak256(init_code))[12:] with salt exactly 32 bytes (64 hex digits; shorter salts are refused rather than padded, unlike viem which left-pads) and either init_code hex (creation bytecode with the ABI-encoded constructor arguments already appended, up to 49,152 bytes, EIP-3860; 0x is empty init code, while an empty init_code= is dropped by the server and counts as not sent) or its 32-byte init_code_hash. Hex inputs take 0x, 0X or no prefix; the deployer is 40 hex digits, EIP-55 checked when mixed case. constructor_args, args and bytecode are declared only to be refused: sending any of them gives ok: false, reason unknown_parameter, because a separate value would change the CREATE2 address. Over HTTP and MCP the server drops every other parameter outside this schema before the tool runs, so those get no warning or refusal there; when run() receives them directly (package or self-hosted copies) unknown names get a warning and secret-like names (private_key, pk, seed, mnemonic, password, api_key ...) are refused without echoing the value. Returns the address in EIP-55 checksum case, the normalised inputs, the formula used and the hashed preimage; bad values give valid: false with a reason. Hex convention: byte values in the answer (address, deployer, salt, init_code_hash, preimage) are hex WITHOUT the 0x prefix, so the answer never holds an 0x address string the buyer did not send; nonce_hex is a 0x quantity as eth_getTransactionCount returns it. Pure arithmetic: says nothing about whether a contract is deployed there. Contract deployers start at nonce 1 (EIP-161), externally owned accounts at 0.

Example input
{"opcode":"create2","deployer":"0x4e59b44847b379578588920ca78fbf26c0b4956c","salt":"0x0000000000000000000000000000000000000000000000000000000000000000","init_code":"0x00"}
Answer
{"ok":true,"result":{"valid":true,"reason":null,"field":null,"formula":"CREATE2","address":"24C4fD2Db1Cf4Cb1aEc651CC0E060A00D400e784","deployer":"4e59b44847b379578588920cA78FbF26c0B4956C","deployer_checksum":"not_checked","nonce":null,"nonce_hex":null,"salt":"0000000000000000000000000000000000000000000000000000000000000000","init_code_hash":"bc36789e7a1e281436464229828f817d6612f7b477d66591ff96a9e064bcc98a","init_code_hash_source":"computed","init_code_bytes":1,"preimage":"ff4e59b44847b379578588920ca78fbf26c0b4956c0000000000000000000000000000000000000000000000000000000000000000bc36789e7a1e281436464229828f817d6612f7b477d66591ff96a9e064bcc98a","ignored_parameters":[],"standard":"CREATE: keccak256(rlp([sender, nonce]))[12:] (Ethereum Yellow Paper, RLP); CREATE2: EIP-1014; nonce limit EIP-2681; initcode limit EIP-3860; checksum EIP-55"},"warnings":["deployer is not in EIP-55 checksum case, so only its hex format was checked"]}
Try it free
/try/evm-contract-address

Buy

Price $1.00, once. One buyer only: the first one owns the tool, we stop selling it and list your copy, and every paid call to it goes to your wallet. Comes with a licence: run it, change it and earn from it; the code itself is not passed on or resold.

  1. Pay with an x402 walletThe buy link is https://forge.fizzl.eu/forge/packages/evm-contract-address?format=zip. It answers with a payment request (HTTP 402) that an x402 wallet pays in USDC on Base. From Claude, ChatGPT or Grok with the Fizzl Agent Wallet: ask “buy https://forge.fizzl.eu/forge/packages/evm-contract-address?format=zip”. From code:
    const pay = wrapFetchWithPayment(fetch, client); // see /llms.txt
    const zip = await pay("https://forge.fizzl.eu/forge/packages/evm-contract-address?format=zip");
  2. Start it with your walletUnzip, npm install, then PAY_TO=0xYourWallet PUBLIC_URL=https://your-host npm start on any Node host.
  3. We list it for youYour copy tells us where it runs; we check it and add it to the x402 Trust Index and the Bazaar under your wallet.
Bought it, and something is wrong?

Paste the receipt you got with the purchase (the X-Forge-Receipt token; a bundle receipt works too) and say what is wrong. Free. We pick it up within the hour; a real fault is fixed, passes the same checks, and you download the new version free at /forge/packages/evm-contract-address/update with your receipt. No money back through this form.

Missing a tool?

Tell us in one sentence what it should do: what goes in, what comes out. Free, no wallet. Our agents read every suggestion and build the useful ones in the next shift. Want it for sure? Order it for $1.