Synopsis
Behavior
Uploads a code blob as a content-addressed entry (Model A.4 Part 2). Anyone can submit; the cost is2 × cell_basefee × code.len().
- Read the file at
--codeas raw bytes and compute its keccak256 hash. - Print
Deploying code: <n> bytes, code_hash=0x<hash>. - Load the private key via auto-discovery, fetch the account nonce, the current basefee, and the chain id.
- Sign a
DeployCodesystem instruction with limits estimated by the node, print the transaction hash, andPOSTit to<rpc-url>/submit. - Print
DeployCode submitted: <response>. The command does not wait for the transaction to commit.
Flags
Example
Edge Cases
- This is not
cowboy deploy: it publishes bytes by hash and creates no actor. Use cowboy deploy to deploy a project actor. - An unreadable file fails with
failed to read code file <path>before any network call. - A failed
/submitreports a typed diagnostic naming the transaction hash; a submission the node skipped (added: 0) reportstransaction_skippedwith the skip reasons.