Crypto Agent Payments
Skill by nicofains1
Why use this skill?
Automate crypto payments, token transfers, and cross-chain swaps for AI agents. Build rewarding systems and bounty programs with this powerful OpenClaw skill.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/nicofains1/crypto-agent-paymentsWhat This Skill Does
The Crypto Agent Payments skill by nicofains1 provides a robust, decentralized framework for AI agents to interact with blockchain infrastructure directly. This skill empowers agents to manage ERC20-compatible wallets, execute token transfers, perform cross-chain swaps, and implement complex reward systems. By leveraging the OnlySwaps MCP server, this tool creates a seamless bridge between high-level AI instructions and on-chain transactions, enabling agents to act as financial participants in the crypto ecosystem. It handles complex tasks like liquidity management, private key generation, and automated payout logic while prioritizing secure key storage.
Installation
To integrate this skill into your OpenClaw environment, execute the following command in your terminal:
clawhub install openclaw/skills/skills/nicofains1/crypto-agent-payments
Once installed, you must configure the MCP server to ensure the agent has connectivity to the swap protocols. For Moltbot or OpenClaw, configure via mcporter using: mcporter config add onlyswaps --command "npx -y @onlyswaps/mcp-server@latest stdio" --transport stdio. Ensure your environment variables, specifically the PRIVATE_KEY, are securely managed, as this is essential for any write-based operations on the blockchain.
Use Cases
- Automated Bug Bounties: Agents can monitor repository activity and trigger instant payouts to security researchers upon verifying vulnerability reports.
- Agent-to-Agent Economies: Facilitate cross-chain transactions where agents pay each other for task completion, such as processing data or generating summaries.
- Referral Fee Harvesting: Implement sophisticated fee logic where your agent earns a commission for routing swaps through the OnlySwaps aggregator.
- Portfolio Management: Automatically rebalance agent wallets to ensure enough liquidity for upcoming gas fees and protocol interactions.
Example Prompts
- "I've completed the bug fix. Can you use my wallet to send 50 USDC to the bounty hunter at address 0x71C... and verify the transaction?"
- "Get a quote for swapping 0.5 ETH to USDC on Base, then execute the swap with a 10 bps referrer fee set to my address."
- "Check the current token balance of my primary agent wallet and ensure I have enough liquidity to cover the next ten automated agent tasks."
Tips & Limitations
- Precision Matters: Always remember the unit difference.
get_quoteandswaprequire values in wei (base units), whiletransferuses human-readable numbers. Mixing these up is the most common cause of failed transactions. - Private Key Security: Never share your private key in plain text prompts. Always use environment variables or local secure storage mechanisms to supply the
PRIVATE_KEYduring execution. - Referrer Fees: These are restricted to ERC20 token swaps only. Attempting to set fees for native token swaps (ETH/BNB) will result in an error or ignored parameters.
- Chain Support: While the aggregator supports 13+ chains, ensure your wallet is correctly configured for the
chainIdof the specific network you are interacting with to prevent loss of funds.
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-nicofains1-crypto-agent-payments": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: external-api, code-execution