Wallet Information
whoami
Display current wallet information and session status.balance
Check token balances for your wallet.Transactions
All transaction commands support:--wait: Wait for on-chain confirmation before returning--json: Output structured JSON instead of human-readable text
transfer
Transfer ERC-20 tokens to another address.--to: Recipient Starknet address (required)--amount: Amount in human-readable units like1.5(required)--token: Token symbol (STRK,ETH) or contract address (default:STRK)--wait: Wait for transaction confirmation--json: JSON output format
approve
Approve a spender contract to transfer tokens on your behalf.--spender: Contract address to approve (required)--amount: Maximum amount to approve (required)--token: Token to approve (default:STRK)--wait: Wait for confirmation--json: JSON output
[!NOTE] Many DeFi protocols require approval before you can deposit or swap tokens.
execute
Execute an arbitrary contract call.--contract: Target contract address (required)--entrypoint: Function name to call (required)--calldata: Comma-separated calldata values (optional)--wait: Wait for confirmation--json: JSON output
- Values are comma-separated
- Can be hex (
0x123) or decimal (1000) - Omit
--calldataif the function takes no arguments
multicall
Execute multiple contract calls atomically in a single transaction.--calls: JSON array of call objects (required)--wait: Wait for confirmation--json: JSON output
[!IMPORTANT] All calls in a multicall succeed or fail together (atomic execution).
Read-Only Operations
call
Execute a read-only contract call (view function) without spending gas.--contract: Target contract address (required)--entrypoint: View function name (required)--calldata: Comma-separated or JSON arguments--block: Block identifier (default:latest)--json: JSON output
simulate
Dry-run a transaction to verify success and check gas usage before execution.estimate
Estimate the fee for a transaction.- Estimated Fee (ETH)
- Gas Usage
Session Management
session status
Check if your session is active on-chain.session import
Import a session token from the dashboard.CAVOS_TOKEN anymore.
[!WARNING] Importing overwrites any existing saved session.
Policy
policy show
Display the spending policy for your current session.[!NOTE] Policies are set in the dashboard when you create or export a session.
Global Flags
These flags work with most commands:| Flag | Description |
|---|---|
--json | Output JSON instead of human-readable text |
--wait | Wait for transaction confirmation (transactions only) |
Exit Codes
The CLI uses standard exit codes:0: Success1: Error (check stderr for details)
Environment Variables
| Variable | Description | Required |
|---|---|---|
CAVOS_TOKEN | Base64 session token from dashboard | Yes (unless session imported) |
CAVOS_RPC_URL | Custom Starknet RPC URL | No |

