搜索

PythonReactSEOPDF
OpenClaw

cavos-cli

Interact with the Cavos CLI for Starknet wallet operations. Use for transfers, approvals, contract calls, session management, and transaction monitoring.

adrianvrj0 来源安装数☆ 0 仓库 Stars

安装与使用

请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。

SkillHub CLI

skillhub install adrianvrj/cavos-cli-skill

打开来源仓库,查看说明和兼容环境后,按来源提供的命令或步骤安装。

将来源链接提供给你的 Agent,让它先读取说明、核对依赖,并向你说明将执行的安装步骤。

查看来源 ↗使用指南

技能说明

Cavos CLI Skill

This skill allows you to interact with the Cavos CLI (@cavos/cli) to manage Starknet wallets, perform transfers, and execute contract calls.

Core Commands

Always use the --json flag when possible to get structured output.

1. Identity & Session
  • Who Am I: Check current session and wallet address.
    npx @cavos/cli whoami --json
    
  • Session Status: Check if the session is active/expired.
    npx @cavos/cli session-status --json
    
  • Import Session: Import a session token provisioned from the Dashboard.
    npx @cavos/cli session import <token>
    
2. Assets & Transfers
  • Check Balance:
    npx @cavos/cli balance --token <STRK|ETH|address> --json
    
  • Transfer Tokens:
    npx @cavos/cli transfer --to <address> --amount <amount> --token <token> --json
    
3. Contract Interactions
  • Approve Spending:
    npx @cavos/cli approve --spender <address> --amount <amount> --token <token> --json
    
  • Execute Call:
    npx @cavos/cli execute --contract <address> --entrypoint <method> --calldata <comma_separated_vals> --json
    
  • Read Call:
    npx @cavos/cli call --contract <address> --entrypoint <method> --calldata <vals> --json
    
4. Advanced Operations
  • Multicall: Batch multiple calls.
    npx @cavos/cli multicall --calls '<json_array>' --json
    
  • Simulate/Estimate: Check tx before sending.
    npx @cavos/cli simulate --contract <addr> --entrypoint <method> --calldata <vals> --json
    
  • Transaction Status:
    npx @cavos/cli tx status <hash> --json
    

Best Practices

  1. Verify Balance: Always run balance before a transfer.
  2. Check Session: Run whoami or session-status at the start of a workflow to ensure authentication.
  3. Use JSON: Parsing JSON output is safer than regexing stdout.
  4. Calldata: Calldata for `e...

来源信息

Source
github
Repository
openclaw/skills
Path
skills/adrianvrj/cavos-cli-skill
Version
—
Commit
197454c67d43d89843ae11522c7a7ffb3a72b6e3
分类来源
rules
状态
active
可见性
public

这些信息来自收录时的来源分析,可能滞后;使用前请核对最新来源文件。

来源内容

SKILL.md
# Cavos CLI Skill

This skill allows you to interact with the Cavos CLI (`@cavos/cli`) to manage Starknet wallets, perform transfers, and execute contract calls.

## Core Commands

Always use the `--json` flag when possible to get structured output.

### 1. Identity & Session
- **Who Am I**: Check current session and wallet address.
  ```bash
  npx @cavos/cli whoami --json
  ```
- **Session Status**: Check if the session is active/expired.
  ```bash
  npx @cavos/cli session-status --json
  ```
- **Import Session**: Import a session token provisioned from the [Dashboard](https://agent.cavos.xyz/).
  ```bash
  npx @cavos/cli session import <token>
  ```

### 2. Assets & Transfers
- **Check Balance**:
  ```bash
  npx @cavos/cli balance --token <STRK|ETH|address> --json
  ```
- **Transfer Tokens**:
  ```bash
  npx @cavos/cli transfer --to <address> --amount <amount> --token <token> --json
  ```

### 3. Contract Interactions
- **Approve Spending**:
  ```bash
  npx @cavos/cli approve --spender <address> --amount <amount> --token <token> --json
  ```
- **Execute Call**:
  ```bash
  npx @cavos/cli execute --contract <address> --entrypoint <method> --calldata <comma_separated_vals> --json
  ```
- **Read Call**:
  ```bash
  npx @cavos/cli call --contract <address> --entrypoint <method> --calldata <vals> --json
  ```

### 4. Advanced Operations
- **Multicall**: Batch multiple calls.
  ```bash
  npx @cavos/cli multicall --calls '<json_array>' --json
  ```
- **Simulate/Estimate**: Check tx before sending.
  ```bash
  npx @cavos/cli simulate --contract <addr> --entrypoint <method> --calldata <vals> --json
  ```
- **Transaction Status**:
  ```bash
  npx @cavos/cli tx status <hash> --json
  ```

## Best Practices
1. **Verify Balance**: Always run `balance` before a `transfer`.
2. **Check Session**: Run `whoami` or `session-status` at the start of a workflow to ensure authentication.
3. **Use JSON**: Parsing JSON output is safer than regexing stdout.
4. **Calldata**: Calldata for `e...

相关技能

OpenClaw

1password

daggerkun007

Set up and use 1Password CLI (op). Use when installing the CLI, enabling desktop app integration, signing in (single or multi-account), or reading/injecting/running secrets via op.