skills.vishalvoidskills/vishalvoid
Technical & DevelopmentIntermediate

x402-pay

Make paid HTTP requests with automatic USDC payment on Base.

Developer Setup

Setup & Installation

bash
npx skills add https://github.com/coinbase/agentic-wallet-skills/blob/main/skills/agentic-wallet/references/x402-pay.md --skill x402-pay

Overview

What This Skill Does

Enables automatic client-side payment for x402-enabled HTTP endpoints on the Base network using initial wallet balances.

Application

When to use this Skill

Documentation

Show Skills.md file

Making Paid x402 Requests

Use the npx awal@2.10.0 x402 pay command to call paid API endpoints with automatic USDC payment on Base.

If the wallet is not authenticated, see references/auth.md.

Command Syntax

npx awal@2.10.0 x402 pay <url> [-X <method>] [-d <json>] [-q <params>] [-h <json>] [--max-amount <n>] [--json]

Options

Option Description
-X, --method <method> HTTP method (default: GET)
-d, --data <json> Request body as JSON string
-q, --query <params> Query parameters as JSON string
-h, --headers <json> Custom HTTP headers as JSON string
--max-amount <amount> Max payment in USDC atomic units (1000000 = $1.00)
--correlation-id <id> Group related operations
--json Output as JSON

USDC Amounts

Lines 1 - 25 of 71

Recommendations

Explore other random skills

All skillsMy patterns