Synopsis
Subcommands
cowboy watchtower init
Deploy and initialize the WatchtowerRegistry actor on the chain.
Behavior:
- Load the private key using key auto-discovery.
- Deploy the WatchtowerRegistry system actor.
- Store the registry address in
.cowboy/config.json.
cowboy watchtower new feed
Create a new data feed in the Watchtower registry.
Behavior:
- Load the private key using key auto-discovery.
- Register a new feed with the given name and description.
- Print the feed ID.
| Flag | Default | Description |
|---|---|---|
--name | Required | Feed name |
--description | "" | Feed description |
cowboy watchtower feed <id> publish
Publish data to an existing feed.
Behavior:
- Load the private key using key auto-discovery.
- Submit the JSON data as a new entry in the specified feed.
- The caller must be the feed owner.
| Flag | Default | Description |
|---|---|---|
--data | Required | JSON-encoded data payload |
cowboy watchtower feed <id> subscribers
List subscribers of a specific feed.
Behavior:
- Query the registry for all subscribers to the given feed ID.
- Print each subscriber’s address and subscription details.
cowboy watchtower list
List all feeds in the Watchtower registry.
Behavior:
- Query the WatchtowerRegistry for all registered feeds.
- Print a summary of each feed.
cowboy watchtower feeds
List feeds created by the current wallet.
Behavior:
- Load the private key using key auto-discovery.
- Derive the wallet address.
- Query the registry for feeds owned by this address.
- Print a summary of each feed.
Edge Cases
publishrequires the caller to be the feed owner.listandsubscribersare read-only and do not require a private key.feedsrequires a private key (to determine the owner address).- Feed IDs are sequential integers assigned by the registry.
Further Reading
- CIP-7: Watchtower — Underlying protocol specification

