Skip to main content

Synopsis

All write commands use key auto-discovery for the private key.

Subcommands

cowboy token create

Create a new CIP-20 fungible token. Behavior:
  1. Load the private key using key auto-discovery.
  2. Build a token creation transaction with the specified parameters.
  3. Sign and submit the transaction.
  4. Print the new token ID.
Flags: Example:

cowboy token transfer

Transfer tokens to another account. Flags: Example:

cowboy token approve

Approve a spender to transfer tokens on your behalf. Flags: Example:

cowboy token mint

Mint new tokens (creator only). Flags: Example:

cowboy token burn

Burn tokens from your own balance. Flags: Example:

cowboy token freeze

Freeze an account from transferring a specific token (creator only). Flags: Example:

cowboy token unfreeze

Unfreeze a previously frozen account (creator only). Flags: Example:

cowboy token info

Query token metadata. Flags: Example:

cowboy token balance

Query the token balance of an account. Flags: Example:

cowboy token list

List all CIP-20 tokens on the chain. Example:

Edge Cases

  • mint and freeze/unfreeze require the caller to be the token creator.
  • burn only burns from the caller’s own balance.
  • info, balance, and list are read-only and do not require a private key.
  • If --max-supply is set and a mint would exceed it, the transaction fails.