agentwalletapi
OpenclawCash crypto wallet API for AI agents. Use when an agent needs to send native or token transfers, check balances, list wallets, or interact with EVM and Solana wallets programmatically via OpenclawCash.
Why use this skill?
Learn how to integrate the OpenclawCash API into your AI agents to manage EVM and Solana wallets, perform token transfers, and execute secure financial transactions.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/macd2/open-claw-cashWhat This Skill Does
The agentwalletapi provides a secure, programmatic interface for managing crypto wallets directly from your AI agent environment. By integrating with OpenclawCash, it enables agents to perform complex financial operations across both EVM-compatible networks and Solana. This tool abstracts the complexities of blockchain transactions, allowing your agent to check balances, monitor transaction history, and execute native asset or token transfers with ease. It is designed to act as the financial engine for autonomous agents that require liquidity to pay for services, conduct trades, or manage digital treasury assets.
Installation
To begin, ensure you have the required system dependencies installed, specifically curl and optionally jq for formatted output. Start by running the setup script located in the skill directory: bash scripts/setup.sh. This initializes your environment configuration. Next, navigate to the newly created .env file and input your AGENTWALLETAPI_KEY, which you can obtain by creating a wallet and enabling API access via the OpenclawCash dashboard. If you are operating in a custom environment, you may also set the AGENTWALLETAPI_URL variable, though the default is sufficient for most users.
Use Cases
- Automated Payments: Agents can autonomously pay for compute or subscription services using native tokens.
- Treasury Management: Track balances across multiple EVM and Solana wallets to trigger alerts or rebalancing actions.
- DeFi Interactions: Execute token swaps and liquidity provision using the quote and swap endpoints.
- Asset Transfers: Move assets between internal hot wallets or external addresses based on predefined agent logic.
Example Prompts
- "Check the current balance of my 'Trading Bot' wallet and list the last five transactions to verify the latest swap result."
- "Transfer 0.5 ETH from my main wallet to the address 0x71C... and confirm the transaction hash once completed."
- "Get a quote for swapping 100 USDC to WETH on mainnet, then execute the swap if the slippage is below 0.5%."
Tips & Limitations
- Safety First: Always use read-only commands (like
balanceorwallets) when testing in a new environment. Never expose your private keys via command-line arguments; use stdin piping for imports to avoid leaving traces in your shell history. - Permissions: Ensure
allowWalletImportis explicitly enabled in the OpenclawCash dashboard only when necessary. High-risk write actions require the--yesflag to prevent accidental execution. - Network Awareness: Be mindful of network costs. Always verify your current chain context before initiating transfers to avoid transaction failure or asset loss.
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-macd2-open-claw-cash": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: network-access, external-api