x402 — community skale-hackathon, community, ide skills, Claude Code, Cursor, Windsurf

v1.0.0
GitHub

About this Skill

Ideal for Financial Agents needing to integrate USDC payment protocols on the Base network Legasi — SKALE x402 Hackathon (EVM port)

legasicrypto legasicrypto
[0]
[0]
Updated: 3/5/2026

Agent Capability Analysis

The x402 skill by legasicrypto is an open-source community AI agent skill for Claude Code and other IDE workflows, helping agents execute tasks with better context, repeatability, and domain-specific guidance.

Ideal Agent Persona

Ideal for Financial Agents needing to integrate USDC payment protocols on the Base network

Core Value

Empowers agents to discover, inspect, and call paid API endpoints using the X402 payment protocol, facilitating seamless transactions in USDC on Base, leveraging the `npx awal@latest x402` command

Capabilities Granted for x402

Discovering paid services on the bazaar
Inspecting price and input schema for X402 endpoints
Automating USDC payments for API requests

! Prerequisites & Limits

  • Requires USDC on Base for transactions
  • Limited to EVM port compatibility
  • Dependent on `npx awal@latest x402` command functionality
Labs Demo

Browser Sandbox Environment

⚡️ Ready to unleash?

Experience this Agent in a zero-setup browser environment powered by WebContainers. No installation required.

Boot Container Sandbox

x402

Install x402, an AI agent skill for AI agent workflows and automation. Works with Claude Code, Cursor, and Windsurf with one-command setup.

SKILL.md
Readonly

x402 Payment Protocol

Use the npx awal@latest x402 commands to discover, inspect, and call paid API endpoints using the X402 payment protocol. Payments are made in USDC on Base.

Workflow

The typical x402 workflow is:

  1. Find a service - Search the bazaar or get details for a known endpoint
  2. Check requirements - Inspect price, method, and input schema
  3. Make the request - Call the endpoint with automatic USDC payment

Commands

Search the Bazaar

Find paid services by keyword using BM25 relevance search:

bash
1npx awal@latest x402 bazaar search <query> [-k <n>] [--force-refresh] [--json]
OptionDescription
-k, --top <n>Number of results (default: 5)
--force-refreshRe-fetch resource index from CDP API
--jsonOutput as JSON

Results are cached locally at ~/.config/awal/bazaar/ and auto-refresh after 12 hours.

List Bazaar Resources

Browse all available resources:

bash
1awal x402 bazaar list [--network <network>] [--full] [--json]
OptionDescription
--network <name>Filter by network (base, base-sepolia)
--fullShow complete details including schemas
--jsonOutput as JSON

Discover Payment Requirements

Inspect an endpoint's x402 payment requirements without paying:

bash
1awal x402 details <url> [--json]

Auto-detects the correct HTTP method (GET, POST, PUT, DELETE, PATCH) by trying each until it gets a 402 response, then displays price, accepted payment schemes, network, and input/output schemas.

Make a Paid Request

Call an x402 endpoint with automatic USDC payment:

bash
1awal x402 pay <url> [-X <method>] [-d <json>] [-q <params>] [-h <json>] [--max-amount <n>] [--json]
OptionDescription
-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
--jsonOutput as JSON

Examples

bash
1# Search for weather-related paid APIs 2awal x402 bazaar search "weather" 3 4# Search with more results 5awal x402 bazaar search "sentiment analysis" -k 10 6 7# Check what an endpoint costs 8awal x402 details https://example.com/api/weather 9 10# Make a GET request (auto-pays) 11awal x402 pay https://example.com/api/weather 12 13# Make a POST request with body 14awal x402 pay https://example.com/api/sentiment -X POST -d '{"text": "I love this product"}' 15 16# Limit max payment to $0.10 17awal x402 pay https://example.com/api/data --max-amount 100000 18 19# Browse all bazaar resources with full details 20awal x402 bazaar list --full

USDC Amounts

X402 uses USDC atomic units (6 decimals):

Atomic UnitsUSD
1000000$1.00
100000$0.10
50000$0.05
10000$0.01

Prerequisites

  • Search/Details: No authentication needed
  • Pay: Must be authenticated (awal auth login <email>) with sufficient USDC balance (awal balance)

Error Handling

  • "Not authenticated" - Run awal auth login <email> first
  • "No X402 payment requirements found" - URL may not be an x402 endpoint
  • "CDP API returned 429" - Rate limited; cached data will be used if available
  • "Insufficient balance" - Fund wallet with USDC (awal balance to check)

FAQ & Installation Steps

These questions and steps mirror the structured data on this page for better search understanding.

? Frequently Asked Questions

What is x402?

Ideal for Financial Agents needing to integrate USDC payment protocols on the Base network Legasi — SKALE x402 Hackathon (EVM port)

How do I install x402?

Run the command: npx killer-skills add legasicrypto/skale-hackathon. It works with Cursor, Windsurf, VS Code, Claude Code, and 19+ other IDEs.

What are the use cases for x402?

Key use cases include: Discovering paid services on the bazaar, Inspecting price and input schema for X402 endpoints, Automating USDC payments for API requests.

Which IDEs are compatible with x402?

This skill is compatible with Cursor, Windsurf, VS Code, Trae, Claude Code, OpenClaw, Aider, Codex, OpenCode, Goose, Cline, Roo Code, Kiro, Augment Code, Continue, GitHub Copilot, Sourcegraph Cody, and Amazon Q Developer. Use the Killer-Skills CLI for universal one-command installation.

Are there any limitations for x402?

Requires USDC on Base for transactions. Limited to EVM port compatibility. Dependent on `npx awal@latest x402` command functionality.

How To Install

  1. 1. Open your terminal

    Open the terminal or command line in your project directory.

  2. 2. Run the install command

    Run: npx killer-skills add legasicrypto/skale-hackathon. The CLI will automatically detect your IDE or AI agent and configure the skill.

  3. 3. Start using the skill

    The skill is now active. Your AI agent can use x402 immediately in the current project.

Related Skills

Looking for an alternative to x402 or another community skill for your workflow? Explore these related open-source skills.

View All

widget-generator

Logo of f
f

f.k.a. Awesome ChatGPT Prompts. Share, discover, and collect prompts from the community. Free and open source — self-host for your organization with complete privacy.

149.6k
0
AI

flags

Logo of vercel
vercel

flags is a Next.js feature management skill that enables developers to efficiently add or modify framework feature flags, streamlining React application development.

138.4k
0
Browser

zustand

Logo of lobehub
lobehub

The ultimate space for work and life — to find, build, and collaborate with agent teammates that grow with you. We are taking agent harness to the next level — enabling multi-agent collaboration, effortless agent team design, and introducing agents as the unit of work interaction.

72.8k
0
AI

data-fetching

Logo of lobehub
lobehub

The ultimate space for work and life — to find, build, and collaborate with agent teammates that grow with you. We are taking agent harness to the next level — enabling multi-agent collaboration, effortless agent team design, and introducing agents as the unit of work interaction.

72.8k
0
AI