Synopsis
Subcommands
cowboy token create
Create a new CIP-20 fungible token.
Behavior:
- Load the private key using key auto-discovery.
- Build a token creation transaction with the specified parameters.
- Sign and submit the transaction.
- Print the new token ID.
| Flag | Default | Description |
|---|---|---|
--name | Required | Token name (e.g., “My Token”) |
--symbol | Required | Token symbol (e.g., “MTK”) |
--decimals | 18 | Number of decimal places |
--initial-supply | Required | Initial token supply |
--max-supply | None | Maximum supply cap (optional, unlimited if omitted) |
--transfer-hook | None | Actor address to call on transfers (optional) |
--metadata-uri | None | URI for off-chain token metadata (optional) |
cowboy token transfer
Transfer tokens to another account.
Flags:
| Flag | Default | Description |
|---|---|---|
--token-id | Required | Token ID (hex) |
--to | Required | Recipient address (hex) |
--amount | Required | Amount to transfer |
cowboy token approve
Approve a spender to transfer tokens on your behalf.
Flags:
| Flag | Default | Description |
|---|---|---|
--token-id | Required | Token ID (hex) |
--spender | Required | Spender address (hex) |
--amount | Required | Approved amount |
cowboy token mint
Mint new tokens (creator only).
Flags:
| Flag | Default | Description |
|---|---|---|
--token-id | Required | Token ID (hex) |
--to | Required | Recipient address (hex) |
--amount | Required | Amount to mint |
cowboy token burn
Burn tokens from your own balance.
Flags:
| Flag | Default | Description |
|---|---|---|
--token-id | Required | Token ID (hex) |
--amount | Required | Amount to burn |
cowboy token freeze
Freeze an account from transferring a specific token (creator only).
Flags:
| Flag | Default | Description |
|---|---|---|
--token-id | Required | Token ID (hex) |
--account | Required | Account to freeze (hex) |
cowboy token unfreeze
Unfreeze a previously frozen account (creator only).
Flags:
| Flag | Default | Description |
|---|---|---|
--token-id | Required | Token ID (hex) |
--account | Required | Account to unfreeze (hex) |
cowboy token info
Query token metadata.
Flags:
| Flag | Default | Description |
|---|---|---|
--token-id | Required | Token ID (hex) |
cowboy token balance
Query the token balance of an account.
Flags:
| Flag | Default | Description |
|---|---|---|
--token-id | Required | Token ID (hex) |
--address | Required | Account address (hex) |
cowboy token list
List all CIP-20 tokens on the chain.
Example:
Edge Cases
mintandfreeze/unfreezerequire the caller to be the token creator.burnonly burns from the caller’s own balance.info,balance, andlistare read-only and do not require a private key.- If
--max-supplyis set and a mint would exceed it, the transaction fails.

