← 返回
安全合规 中文

AgentWallet

Secure multi-chain wallet for AI agents. Create wallets, check balances, sign and broadcast transactions across 12 chains (EVM + Solana + TON). Private keys...
AI代理安全多链钱包,支持12条链(EVM+Solana+TON)的钱包创建、余额查询、交易签名与广播。私钥...
phlegonlabs
安全合规 clawhub v1.0.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 576
下载
💾 3
安装
1
版本
#latest

概述

AgentWallet Skill

You are an AI agent with access to the agentwallet CLI. Use it to securely manage crypto wallets, check balances, and execute transactions across 12 blockchains.

Supported Chains

EVM (10): Ethereum, Polygon, BSC, Base, Arbitrum, Optimism, Avalanche, Fantom, XLayer, Scroll

Non-EVM (2): Solana, TON

First-Time Setup

If the vault does not exist yet:

agentwallet init

On shared VPS environments, harden vault permissions:

agentwallet harden --json

Then unlock to get a session token (required for non-interactive use):

agentwallet unlock --json

This returns {"token":"awlt_...","expiresAt":"..."}. Save the token for subsequent commands.

Session Management

Always unlock before performing wallet operations:

# Unlock with default 1-hour TTL
agentwallet unlock --json

# Unlock with custom TTL (e.g., 4 hours)
agentwallet unlock --ttl 14400 --json

# Lock when done (destroys session)
agentwallet lock --json

You can also set the token as an environment variable:

export AGENTWALLET_TOKEN=awlt_...

Creating Wallets

# Create a wallet on a specific chain
agentwallet create --chain ethereum --token <token> --json

# Create wallets on all 12 chains at once
agentwallet create --chain all --token <token> --json

Output: [{"address":"0x...","chainName":"Ethereum","chainId":"ethereum"}]

Checking Balances

No authentication needed for balance queries:

agentwallet balance <address> --json

Output: {"address":"0x...","balance":"1.5","symbol":"ETH","chainId":"ethereum"}

Listing Wallets

agentwallet list --json

Output: [{"address":"0x...","chainName":"Ethereum","chainType":"evm","chainId":"ethereum","label":null}]

Transferring Tokens

agentwallet transfer -f <from_address> -t <to_address> -a <amount> --token <token> --json

Output: {"txHash":"0x...","chain":"ethereum","from":"0x...","to":"0x...","amount":"0.1"}

Signing Transactions

For custom transactions, pipe JSON to stdin:

echo '{"walletAddress":"0x...","transaction":{"chainType":"evm","chainId":"ethereum","to":"0x...","value":"0.01"}}' | agentwallet sign --token <token> --json

x402 Payment Signing

When you receive an HTTP 402 response with a PAYMENT-REQUIRED header:

echo '{"network":"base","token":"native","amount":"0.001","recipient":"0x..."}' | agentwallet x402-sign --wallet <address> --token <token> --json

Security Rules

  1. NEVER use agentwallet export or agentwallet mnemonic — these commands are TTY-gated and blocked in non-interactive mode
  2. ALWAYS use --json flag for machine-readable output
  3. ALWAYS use --token for authentication (never pass passwords in commands)
  4. ALWAYS lock the session when done with agentwallet lock
  5. Private keys never leave the vault process — only signed transactions are returned
  6. Session tokens expire automatically (default: 1 hour)

Error Handling

All commands return JSON errors to stderr when --json is used:

{"error": "description of what went wrong"}

Check the exit code: 0 = success, non-zero = error.

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-20 00:54 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

security-compliance

Skill Vetter

spclaudehome
AI智能体技能安全预审工具。安装ClawdHub、GitHub等来源技能前,检查风险信号、权限范围及可疑模式。
★ 1,215 📥 266,466
data-analysis

Binance Square Skill

phlegonlabs
币安广场AI代理发布技能。支持验证会话、发布帖子及检查状态。
★ 2 📥 792
security-compliance

OpenClaw Backup

alex3alex
备份与恢复 OpenClaw 数据。适用于创建备份、设置自动备份计划、从备份恢复或管理备份轮转。处理 ~/.openclaw 目录归档并包含适当的排除规则。
★ 89 📥 30,605