General Questions
What is h402?
What is h402?
h402 is a thin, header-based payment primitive that integrates directly into
HTTP interactions, enabling stateless machine-to-machine payments without
centralized billing systems or proprietary APIs.
Why was h402 created?
Why was h402 created?
Thirty-five years after HTTP’s creation, the web still lacks a native,
programmable unit of value. h402 aims to close this gap by providing a
protocol for autonomous systems to negotiate value exchange directly.
How does h402 differ from traditional payment systems?
How does h402 differ from traditional payment systems?
Unlike traditional systems that rely on credit cards, API keys or custodial
services, h402 embeds price discovery and settlement directly in the HTTP
request-response cycle, making it ideal for machine-to-machine transactions.
Technical Questions
Does h402 require a database?
Does h402 require a database?
The core protocol is stateless, but the facilitator service requires Redis for operational purposes and uses a database for storing transaction hashes.
Which blockchains are supported?
Which blockchains are supported?
h402 is chain-plural by design. The facilitator currently supports:
- EVM chains (Ethereum, Base, BSC)
- Solana mainnet
- Future chains will be added through the extensible architecture
What happens if a payment fails?
What happens if a payment fails?
The protocol includes verification and settlement steps. The facilitator service handles payment verification and settlement, with built-in error handling.
Implementation Questions
Do I need to modify my existing HTTP service?
Do I need to modify my existing HTTP service?
No major modifications are needed. h402 works as a thin gateway in front of
your service, handling payment negotiation while your core logic remains
unchanged.
What's the role of the Facilitator?
What's the role of the Facilitator?
The Facilitator is a critical service that:
- Verifies payment payloads across supported chains
- Handles transaction settlement
- Provides health monitoring and backup functionality
- Manages chain-specific complexities It requires proper configuration including private keys, RPC endpoints, and Redis for operation.
How do I handle high-volume scenarios?
How do I handle high-volume scenarios?
The facilitator service is designed for production use with:
- Redis-backed operations
- Automated database backups to S3
- Health monitoring endpoints
- Docker containerization support
- Configurable backup retention and scheduling
Security Questions
How are payments validated?
How are payments validated?
Payments are validated through the facilitator’s
/verify endpoint, which checks payment proofs and requirements including:- Token specifications (address, type, decimals)
- Amount requirements
- Network/chain validation
- Payment expiration
Can payments be replayed?
Can payments be replayed?
No. The facilitator service validates each payment payload, checking each transaction against the database, additionally there are other protocol built-in security features.
How are API keys and secrets handled?
How are API keys and secrets handled?
The facilitator service requires secure configuration through environment variables including:
- Private keys for signing
- Admin tokens for protected endpoints
- S3 credentials for backups
- Redis connection details
Use Cases
Is h402 suitable for subscription services?
Is h402 suitable for subscription services?
Yes. The payment requirements system supports flexible payment schemes including:
exact and soon to be introduced upto, prepaid, streamed, subscription, postpaid.Can h402 handle micropayments?
Can h402 handle micropayments?
Yes, it supports precise payment amounts through:
- Token-specific decimal handling
- Smallest unit amount formatting
- Support for various token types
- Chain-specific amount representations
Does h402 work for human users too?
Does h402 work for human users too?
While optimized for machine-to-machine payments, h402 works with any system capable of:
- Generating valid payment payloads
- Interacting with HTTP APIs
- Meeting payment requirements
- Processing base64 encoded payloads
Development & Support
Where can I find example implementations?
Where can I find example implementations?
Check our Integration Examples page for real-world usage
patterns and the Quickstart Guide for basic setup
instructions.
Is h402 production-ready?
Is h402 production-ready?
Yes, the facilitator service is production-ready with:
- Docker and docker-compose support
- Comprehensive environment configuration
- S3-compatible backup system
- Health monitoring endpoints
- Redis integration for reliability
How can I contribute?
How can I contribute?
h402 is fully open source. You can:
- Contribute to the core protocol
- Build integrations and tools
- Share implementation feedback
- Propose new payment schemes

