x402

Implement HTTP 402 micropayments for APIs across EVM, Solana, Stellar, and Aptos.

32|2|Updated Nov 5, 2025
One-click install
npx skills add https://github.com/tenequm/skills --skill x402-tenequm
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: x402
Source: https://github.com/tenequm/skills/tree/main/skills/x402
Command: npx skills add https://github.com/tenequm/skills --skill x402-tenequm

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill enables developers to build internet-native payment systems using the HTTP 402 Payment Required status code, facilitating on-chain micropayments for APIs, content, and AI agent transactions without traditional accounts or keys.

Core Features & Use Cases

  • HTTP 402 Integration: Seamlessly integrate crypto payments into any HTTP-based service.
  • Multi-Network Support: Works across EVM (Base, Ethereum), Solana, Stellar, and Aptos.
  • SDKs: Provides TypeScript, Python, and Go SDKs for easy integration.
  • Use Case: Implement a paid API where users pay a small amount of crypto per request, or protect premium content with an on-chain micropayment.

Quick Start

Use the x402 skill to build an internet-native payment system using the HTTP 402 protocol.

Frequently Asked Questions about x402

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

FAQPage Schema
How do I implement HTTP 402 payments for a web API?

Implement HTTP 402 payments by returning the 402 Payment Required status code, then facilitate on-chain micropayments for APIs without traditional accounts or keys using the x402 protocol.

Can I use HTTP 402 micropayments with Solana and EVM networks?

HTTP 402 micropayments work with Solana, EVM networks like Base and Ethereum, Stellar, and Aptos, enabling on-chain crypto transactions across multiple blockchain environments.

What are on-chain micropayments and when do I need them for API requests?

On-chain micropayments are small crypto transactions processed directly on a blockchain, needed when building paid APIs requiring users to pay a small amount of crypto per request.

How do I integrate crypto micropayments into paywalled content using TypeScript or Python?

Integrate crypto micropayments into paywalled content using TypeScript, Python, or Go SDKs provided to seamlessly facilitate on-chain payments via the HTTP 402 protocol.

Does HTTP 402 support AI agent transactions across different blockchain networks?

HTTP 402 supports AI agent transactions across EVM, Solana, Stellar, and Aptos networks, using exact and upto payment schemes via HTTP, MCP, and A2A transports.

What is the difference between exact and upto payment schemes in HTTP 402?

Exact and upto payment schemes in HTTP 402 define how on-chain micropayments are facilitated, allowing flexible transaction amounts for APIs, content, and AI agent transactions.