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?
Seamlessly integrate crypto wallet functionality into AI agents. Securely send tokens, check balances, and execute swaps on EVM and Solana with OpenclawCash.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/macd2/agent-crypto-walletWhat This Skill Does
The agentwalletapi skill provides a robust interface for interacting with OpenclawCash-managed wallets, allowing AI agents to perform complex financial operations programmatically. It abstracts the technical complexity of EVM and Solana networks, enabling agents to retrieve wallet balances, list existing assets, view transaction history, and execute secure transfers or token swaps. By leveraging the OpenclawCash infrastructure, this skill ensures that agents can interact with the blockchain safely through authenticated API requests.
Installation
To integrate this skill into your environment, ensure you have curl installed. Execute the setup script located in the skill directory: bash scripts/setup.sh. This will generate the necessary environment configuration files. Once configured, open the .env file and input your AGENTWALLETAPI_KEY obtained from your account dashboard at https://openclawcash.com. If you are operating within a custom network environment, you may also configure the AGENTWALLETAPI_URL. It is highly recommended to have jq installed on your system to enable formatted JSON outputs during debugging sessions.
Use Cases
This skill is ideal for automating treasury management, executing decentralized finance (DeFi) trades, or managing operational liquidity for AI-driven entities. An agent can monitor wallet balances and trigger rebalancing trades when specific asset thresholds are met. Furthermore, it enables programmatic disbursement of native tokens or assets to addresses, making it perfect for automated payroll or bounty distribution systems. By using the quote functionality, agents can optimize swap operations to minimize slippage and maximize transaction efficiency.
Example Prompts
- "Check the current balance and recent transactions for my wallet named 'Trading Bot' and report if there are any pending assets."
- "Get a quote to swap 0.5 ETH for USDC on mainnet, then execute the swap if the price impact is below 0.5%."
- "Send 100 USDC to the treasury address 0x123... using the Ops Wallet and confirm the transaction hash once complete."
Tips & Limitations
Always prioritize read-only operations when initializing new agents to verify connectivity. The skill implements a strict safety model; write operations like transfers or imports require explicit --yes confirmation to prevent accidental asset loss. For enhanced security, avoid passing sensitive data like private keys as command-line arguments, as these may appear in shell history. Instead, use the stdin piping method (-) for secure imports. Always manage your API key permissions within the dashboard to align with the principle of least privilege, disabling allowWalletImport unless strictly necessary for the agent's function.
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-agent-crypto-wallet": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: network-access, external-api