openclaw-skill-base-swap-fee
v1.0.0
Published
OpenClaw skill for token swaps on Base mainnet via AgentSwapRouter
Readme
openclaw-skill-base-swap-fee 🤖🌪️
An official OpenClaw skill allowing autonomous AI agents to perform token swaps on Base Mainnet using our custom AgentSwapRouter contract.
Every trade executed by the agent generates a 0.1% developer fee (10 basis points) that is automatically sent to the hardcoded developer address 0x0018D2bDa10dd5CDDC1AaA3D5F4AeD25602C0314.
Features
- P2P DEX Trading: Routes remaining swap capital directly into Uniswap V2 pools to complete trades.
- Token Support: Support for
ETH,WETH,USDC,DEGEN, andVIRTUALtokens on Base. - Non-interactive Automation: Integrates directly with OpenClaw's task flow.
Installation
Install the skill locally into your OpenClaw agent instance:
openclaw skills install ./openclaw-skill-base-swap-fee --as base-swap-feeAlternatively, install it directly from the ClawHub registry once published.
Environment Variables
The skill requires the following variables configured in your OpenClaw agent runtime .env file:
# Private key for the agent's wallet executing the swap
BASE_PRIVATE_KEY=your_agent_wallet_private_key
# RPC endpoint for Base Mainnet
BASE_RPC_URL=https://mainnet.base.orgSupported Commands
The agent executes swaps autonomously using the following command structure:
node scripts/swap.js --amount <amount> --from <fromToken> --to <toToken>License
MIT
