wallet
Multi-chain wallet: EVM and Solana balances, transfers, signing, and policy. Use when checking balances, sending tokens, signing typed data, or proposing a…
от Starchild-ai-agent★ 34 звезды на GitHub
Установить wallet в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
💰 Wallet Skill
Multi-chain wallet for EVM (DeBank-supported chains) + Solana. Balances, transfers, signing, and policy management. Script skill — call the functions below via bash; no wallet tools are registered.
How to call
All read/transfer/sign operations are Python functions in core.skill_tools.wallet.
Run them from bash and read the JSON result:
python3 -c "from core.skill_tools import wallet; import json; print(json.dumps(wallet.wallet_balance(chain='base')))"
The one operation that is NOT a script function is proposing a wallet policy
— it needs to render a confirmation card in the UI, so it goes through the native
frontend_action tool (see Policy Management below).
Functions (from core.skill_tools import wallet)
| Function | Description |
|---|---|
wallet_info() |
Get all AGENT wallet addresses |
get_user_wallets() |
The USER'S OWN wallets (login + secondary) — read-only, from env |
wallet_balance(chain, address="", asset="") |
EVM balance on a chain (DeBank). chain required |
wallet_sol_balance(address="", asset="") |
Solana balance (Birdeye) |
wallet_get_all_balances(evm_address="", sol_address="") |
All chains at once |
wallet_transfer(to, amount, chain_id=1, data="", **kw) |
Broadcast EVM tx (gas sponsored by default) |
wallet_sign_transaction(to, amount, chain_id=1, data="", **kw) |
Sign EVM tx (no broadcast) |
wallet_sign(message) |
EIP-191 message signing |
wallet_sign_typed_data(domain, types, primaryType, message) |
EIP-712 typed data signing |
wallet_transactions(chain="ethereum", asset="", limit=20) |
EVM tx history |
wallet_sol_transfer(transaction, caip2=...) |
Broadcast Solana tx (base64) |
wallet_sol_sign_transaction(transaction) |
Sign Solana tx (no broadcast) |
wallet_sol_sign(message) |
Solana message signing |
wallet_sol_transactions(chain="solana", asset="sol", limit=20) |
Solana tx history |
wallet_get_policy(chain_type="ethereum") |
Check policy status |
validate_and_clean_rules(rules, chain_type) |
Pre-validate policy rules before proposing |
The User's Own Wallets (login / secondary)
The agent wallet is NOT the user's wallet. The platform injects the user's own wallet identities as env vars (synced from the control plane at container start and on user wallet actions):
USER_LOGIN_WALLET_ADDRESS/USER_LOGIN_WALLET_TYPE— the wallet the user logs in with (or bound as primary).USER_SECONDARY_WALLET_ADDRESS/USER_SECONDARY_WALLET_TYPE— the user's other linked wallet (e.g. Solana when login is EVM).
When asked "what's my wallet" / "my login wallet" / "check MY balance", read these — do NOT answer with the agent wallet or say you don't know:
python3 -c "from core.skill_tools import wallet; import json; print(json.dumps(wallet.get_user_wallets()))"
Empty/missing values mean the user has never bound a wallet in that slot (e.g. social login) — say so and point them to wallet binding in the web app.
Rules:
- Read-only. The agent holds no keys for these wallets. To check the user's
balances, pass the address into
wallet_balance(chain, address=...)/wallet_sol_balance(address=...). - Transactions from the user's wallet never go through script functions —
use the native
frontend_action(action_type="user_wallet_tx", ...)flow, where the user signs in the UI andexpected_fromis enforced server-side.
Key Facts
- Amounts are in wei for EVM (
wallet_transfer/wallet_sign_transaction). 0.01 ETH =10000000000000000. For ERC-20 token sends,amountis0(native) and the transfer is encoded indatacalldata. - Gas is sponsored by default on EVM chains — user doesn't need native tokens for gas. Falls back to user-paid if unavailable. Pass
sponsor=Falseto pay gas from wallet balance. - Policy default: OFF (allow-all). Only when policy is enabled do transactions need UI confirmation.
- Supported EVM chains: All DeBank-supported chains. Common names auto-mapped (e.g.
avalanche→avax,bsc→bsc,zksync→era). Fallback aliases include ethereum/base/arbitrum/optimism/polygon/linea/bsc/avalanche/fantom/gnosis/zksync/scroll/blast/mantle/celo/aurora plus monad/world/unichain/abstract/sonic/berachain. - Balance sources: DeBank (EVM), Birdeye (Solana), wallet-service (fallback). DeBank/Birdeye keys are auto-injected by sc-proxy.
Workflows
Check balances
python3 -c "from core.skill_tools import wallet; import json; print(json.dumps(wallet.wallet_balance(chain='base')))"
python3 -c "from core.skill_tools import wallet; import json; print(json.dumps(wallet.wallet_get_all_balances()))"
Send a transaction (EVM)
Always verify balance before, and the result/history after.
# 1. check
python3 -c "from core.skill_tools import wallet; import json; print(json.dumps(wallet.wallet_balance(chain='base')))"
# 2. transfer (amount in wei)
py
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- __init__.py
- exports.py
- logo.png
- wallet.py
FAQ
Что делает скилл wallet?
Multi-chain wallet: EVM and Solana balances, transfers, signing, and policy. Use when checking balances, sending tokens, signing typed data, or proposing a wallet policy (e.g. send 10 USDC on Base, sign EIP-712, Solana balance).
Как установить скилл wallet?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл wallet запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
skill-creator
AnthropicCreate new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
discernment-nudge
AnthropicAfter you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
data-consolidate
AnthropicJoins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
inspection-to-capa
AnthropicRuns the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…