Skip to main content

Overview

Trade tokens on Base network. Use when you or the user want to trade, exchange, buy, sell, or convert between tokens.

Prerequisites

  • Must be authenticated (npx awal@latest status to check)
  • Wallet must have sufficient balance of the source token

Confirming wallet status

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

Command syntax

Arguments

Amount formats

Large integers (>100) without a decimal point are treated as atomic units. For example, 500000 for USDC (6 decimals) = $0.50.

Options

Trading is only available on Base mainnet. Testnet trading is not currently supported.

Token aliases

Examples

Error handling