trade

Installation
Summary

Execute token swaps on Base network using flexible amount formats and built-in token aliases.

  • Supports three common token aliases (USDC, ETH, WETH) plus arbitrary contract addresses; amounts can be specified as dollar values, decimals, whole numbers, or atomic units with automatic decimal detection
  • Includes configurable slippage tolerance (in basis points) and JSON output option for programmatic integration
  • Requires wallet authentication via the authenticate-wallet skill; validates all user input to prevent shell injection before executing trades
SKILL.md

Trading Tokens

Use the npx awal@2.10.0 trade command to swap tokens on Base or Polygon via the CDP Swap API. You must be authenticated to trade.

Confirm wallet is initialized and authed

npx awal@2.10.0 status

If the wallet is not authenticated, refer to the authenticate-wallet skill.

Command Syntax

npx awal@2.10.0 trade <amount> <from> <to> [options]

The command is also available as npx awal@2.10.0 swap (alias).

Related skills

More from coinbase/agentic-wallet-skills

Installs
2.8K
GitHub Stars
105
First Seen
Feb 10, 2026