teach-algorand-x402
Installation
SKILL.md
x402 Protocol with Algorand (AVM)
Understand the x402 protocol, how Algorand integrates as a first-class blockchain alongside EVM and SVM, and how the three components (client, server, facilitator) work together to enable HTTP-native payments.
Prerequisites
Before diving into x402, ensure you understand:
- HTTP basics -- request/response cycle, status codes (especially 402 Payment Required)
- Algorand fundamentals -- addresses, transactions, ASAs, atomic groups
- Package managers -- npm (TypeScript) or pip (Python) for installing SDK packages
Core Concept: HTTP 402 Payment Required
x402 turns the HTTP 402 status code into a machine-readable payment protocol. When a client requests a protected resource, the server responds with 402 and structured payment requirements. The client pays, then retries the request with proof of payment.