Synopsis
Subcommands
cowboy actor deploy
Deploy an actor to the chain from a Python source file.
Behavior:
- Load the private key using key auto-discovery.
- Read the actor source code from
--codepath. - Build a Deploy transaction with the specified fee limits.
- If
--nonce 0(default), auto-fetch the current nonce from the chain. - Sign and submit the transaction.
- Print the transaction hash and the deterministic actor address.
| Flag | Default | Description |
|---|---|---|
--code | Required | Path to the actor Python source file |
--salt | 0x00 | Hex salt for CREATE2-style address derivation |
--private-key | Auto-discovered | Path to private key file |
--nonce | 0 (auto-fetch) | Transaction nonce |
--cycles-limit | 100000 | Maximum compute cycles |
--cells-limit | 100000 | Maximum storage cells |
--max-fee-per-cycle | 1 | Max fee per compute cycle |
--max-fee-per-cell | 1 | Max fee per storage cell |
cowboy actor execute
Call a handler method on a deployed actor.
Behavior:
- Load the private key using key auto-discovery.
- Build an ActorMessage transaction targeting the specified actor and handler.
- The payload can be a hex string or a file path prefixed with
@. - If
--nonce 0(default), auto-fetch the current nonce from the chain. - Sign and submit the transaction.
- Print the transaction hash.
| Flag | Default | Description |
|---|---|---|
--actor | Required | Target actor address (hex) |
--handler | Required | Handler method name to invoke |
--payload | Required | Hex-encoded payload or @path/to/file |
--private-key | Auto-discovered | Path to private key file |
--nonce | 0 (auto-fetch) | Transaction nonce |
--cycles-limit | 200000 | Maximum compute cycles |
--cells-limit | 200000 | Maximum storage cells |
--max-fee-per-cycle | 1 | Max fee per compute cycle |
--max-fee-per-cell | 1 | Max fee per storage cell |
cowboy actor get
Query actor information from the chain.
Behavior:
- Send
GET /actor/<address>to the RPC endpoint. - Print the actor’s metadata (code hash, creator, state).
| Flag | Default | Description |
|---|---|---|
--address | Required | Actor address to query (hex) |
cowboy actor address
Compute the deterministic address an actor would have without deploying it (CREATE2-style).
Behavior:
- Read the actor source code from
--codepath. - Compute the address using the creator address, code hash, and salt.
- Print the computed address.
| Flag | Default | Description |
|---|---|---|
--code | Required | Path to the actor Python source file |
--creator | Required | Creator address (hex) |
--salt | 0x00 | Hex salt for address derivation |
cowboy actor new
Scaffold a new actor from a template. See cowboy actor new for full documentation.
cowboy actor logs
Fetch the event log for a deployed actor.
Behavior:
- Send a request to the RPC endpoint to fetch logs for the specified actor address.
- Print the log entries.
| Flag | Default | Description |
|---|---|---|
--address | Required | Actor address (hex) |
--rpc-url | Auto-discovered | RPC endpoint |

