Skip to main content

Synopsis

Behavior

Uploads a code blob as a content-addressed entry (Model A.4 Part 2). Anyone can submit; the cost is 2 × cell_basefee × code.len().
  1. Read the file at --code as raw bytes and compute its keccak256 hash.
  2. Print Deploying code: <n> bytes, code_hash=0x<hash>.
  3. Load the private key via auto-discovery, fetch the account nonce, the current basefee, and the chain id.
  4. Sign a DeployCode system instruction with limits estimated by the node, print the transaction hash, and POST it to <rpc-url>/submit.
  5. 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 /submit reports a typed diagnostic naming the transaction hash; a submission the node skipped (added: 0) reports transaction_skipped with the skip reasons.