erc-x402

Implement x402 HTTP-native payments with stablecoins on Celo via thirdweb SDK.

7|2|Updated Jan 28, 2026
One-click install
npx skills add https://github.com/LuisSambrano/antigravity-config --skill erc-x402
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: erc-x402
Source: https://github.com/LuisSambrano/antigravity-config/tree/main/skills/8-blockchain/erc-x402
Command: npx skills add https://github.com/LuisSambrano/antigravity-config --skill erc-x402

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires thirdweb, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill enables AI agents and applications to make instant, permissionless micropayments using stablecoins, activating the HTTP 402 "Payment Required" status code.

Core Features & Use Cases

  • Pay-per-use APIs: Implement services that charge for each API call.
  • Autonomous Agent Payments: Allow AI agents to pay for services they consume.
  • Micropayments: Facilitate small, frequent payments for digital content or data.
  • Use Case: An AI agent needs to access real-time market data. Instead of a subscription, it pays a small, per-request fee using x402 and a stablecoin on Celo.

Quick Start

Use the erc-x402 skill to wrap a fetch request to an API endpoint that requires payment.

Frequently Asked Questions about erc-x402

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do AI agents handle HTTP 402 payment required flows for API access?

AI agents handle HTTP 402 flows by making instant, permissionless micropayments using stablecoins on the Celo blockchain, facilitated through the x402 protocol to access pay-per-use APIs.

What is the x402 HTTP-native payment protocol for web3 micropayments?

The x402 HTTP-native payment protocol activates the HTTP 402 status code to facilitate stablecoin micropayments for AI agents and applications, enabling pay-per-use API interactions on the Celo blockchain.

How do I implement pay-per-use API charges for autonomous AI agents?

You implement pay-per-use API charges by wrapping fetch requests with the x402 protocol, which handles client-side and server-side stablecoin payments dynamically using the thirdweb SDK.

Does the x402 payment protocol work with thirdweb SDK on Celo?

Yes, the x402 payment protocol integrates directly with the thirdweb SDK on the Celo blockchain to manage both client-side and server-side payment handling for AI agents.

How does ERC-8004 trust verification work for HTTP 402 agent payments?

ERC-8004 trust verification supports HTTP 402 agent payments by validating dynamic pricing and transaction integrity on the Celo blockchain, ensuring secure stablecoin micropayments for consumed services.