Deploy a contract from a signer (contract creation tx)
signs a contract-creation transaction (to: null + data: bytecode) and broadcasts it to the chain. Mirrors POST /contracts/v1/call (same auth, lifecycle gating, idempotency, billing) but instead of calling an existing contract, it creates a new one. The bytecode field is the full creation calldata — creation bytecode concatenated with ABI-encoded constructor args (the caller does the encoding using viem/ethers or equivalent; run402 does not compile Solidity). The deterministic CREATE address is computed from (wallet.address, nonce) and returned synchronously in the 202 response, so callers know where the new contract will live before the tx confirms. The reconciler verifies the receipt's contractAddress against the pre-stored predicted address on confirmation. Cost: chain gas at-cost (paid from wallet's native ETH) + $0.000005 signing fee per deploy (same as a regular contract call).
Request
- Base URL: https://api.run402.com
- URL: https://api.run402.com/contracts/v1/deploy
- Auth: HTTP bearer
Headers
Request body
Response
Submitted; returns { call_id, tx_hash, status: 'pending', contract_address }. The contract_address is the deterministic CREATE address — known synchronously, before the tx confirms.
Changes
No recorded changes to this operation across all 1 revision of this API.