Skip to main content

Overview

Make a paid API request to an x402 endpoint with automatic USDC payment. Use when you or the user want to call a paid API, make an x402 request, or use a paid service. Use search-for-service first to find available endpoints.

Prerequisites

  • Must be authenticated (npx awal@latest status to check)
  • Wallet must have sufficient USDC balance (npx awal@latest balance to check)

Confirming wallet status

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

Command syntax

Options

USDC amounts

x402 uses USDC atomic units (6 decimals):

Examples

Error handling