{"uid":"cap_940hYXyViQAlia8JnFjCf","slug":"web3-tools-contract-address-predictor-create-create2-63160e6a","name":"Web3 Tools - Contract Address Predictor (CREATE / CREATE2)","description":"Predict a contract address: CREATE from deployer and nonce, or CREATE2 from deployer, salt and init code (or its hash).","url":"https://web3-tools.x402tookit.com/contract-address?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"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"}}}}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.02","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.02/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_mmyl6fxUTYvpJchzyKJCe","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Predicts the Ethereum contract address that will be deployed using either CREATE (deployer + nonce) or CREATE2 (deployer + salt + init code or its hash).","exampleAgentPrompt":"What contract address will be deployed using CREATE2 from deployer 0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045 with salt 0x0000000000000000000000000000000000000000000000000000000000000001 and init code hash 0xabc123...?","exampleUseCases":[{"title":"Pre-compute CREATE2 deployment address","prompt":"Can you predict the contract address for a CREATE2 deployment from deployer 0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045, salt 0x0000000000000000000000000000000000000000000000000000000000000042, and init code hash 0xdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeef?"},{"title":"Find next contract address from nonce","prompt":"What address will be created when deployer 0xAbcD1234AbcD1234AbcD1234AbcD1234AbcD1234 deploys their next contract using CREATE with nonce 7?"},{"title":"Verify expected deployment address","prompt":"I'm about to deploy a contract from 0x1111111111111111111111111111111111111111 using CREATE2 — the salt is 0x0000000000000000000000000000000000000000000000000000000000000099 and the full init code starts with 0x6080604052... Can you compute the expected address so I can confirm it matches what my deployment script says?"}],"resultDescription":"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.","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-21T12:35:16.163Z","isFirstParty":false,"canonicalSlug":"web3-tools-contract-address-predictor-create-create2-63160e6a"}