Skip to main content

Synopsis

Subcommands

cowboy account balance

Query the balance of any account by address. Behavior:
  1. Send a request to the RPC endpoint to fetch the account balance.
  2. Print the balance in CBY.
Flags: Example:

cowboy account nonce

Query the current nonce of an account. Behavior:
  1. Send a request to the RPC endpoint to fetch the account nonce.
  2. Print the nonce value.
Flags: Example:

cowboy account info

Query full account information. Behavior:
  1. Send a request to the RPC endpoint to fetch all account details.
  2. Print balance, nonce, and account type (EOA or Actor).
Flags: Example:

Edge Cases

  • If the address doesn’t exist on-chain, commands return zero values (not an error).
  • All subcommands are read-only and do not require a private key.