trade

Swap tokens on the Base network via the CDP Swap API.

1|Updated Feb 19, 2026
One-click install
npx skills add https://github.com/clawgame/clawgame --skill trade-clawgame
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: trade
Source: https://github.com/clawgame/clawgame/tree/main/.agents/skills/trade
Command: npx skills add https://github.com/clawgame/clawgame --skill trade-clawgame

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Swaps and trades tokens on the Base network via the CDP Swap API, enabling authenticated users to convert between USDC, ETH, and WETH without manually interacting with multiple contracts.

Core Features & Use Cases

  • Token aliases support: use usdc, eth, weth or contract addresses.
  • Flexible amount formats: accepts dollar amounts, decimals, whole numbers, and atomic units with automatic token decimals for known tokens.
  • JSON output & error handling: optional JSON output and clear, actionable errors for failed trades.

Quick Start

Authenticate your wallet and run the trade command to swap tokens on Base.

Frequently Asked Questions about trade

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I swap USDC for ETH on the Base network?

To swap USDC for ETH on the Base network, authenticate your wallet and use the trade command via the CDP Swap API to convert between token aliases or contract addresses quickly and securely.

Can I use token contract addresses instead of aliases for Base network swaps?

Yes, Base network swaps support both token aliases like usdc, eth, and weth, as well as specific contract addresses, allowing you to execute trades using your preferred token identification method.

What amount formats are accepted when trading tokens on Base?

Token trades on Base accept multiple amount formats including dollar amounts, decimals, whole numbers, and atomic units, with automatic decimal conversion applied for known tokens.

Do I need wallet authentication to execute token swaps on Base?

Yes, wallet authentication is required to execute token swaps on Base, ensuring that only authorized users can convert between USDC, ETH, and WETH via the CDP Swap API.

Can I get JSON output for my Base network token trades?

Yes, you can request optional JSON output for your token trades on Base, which accompanies clear and actionable error messaging if any slippage or trade failures occur.

Does swapping tokens on Base support price-aware trades with slippage protection?

Yes, the CDP Swap API enables price-aware trades with slippage protection on Base, allowing developers and traders to programmatically convert tokens while mitigating price movement risks.