tempo-x402
Core library for the x402 payment protocol on the Tempo blockchain.
Installation
[]
= "1"
The crate is published as tempo-x402 but the library name is x402:
use SchemeServer;
use TempoSchemeServer;
Features
- HTTP Client: Automatic 402 handling with payment signing
- EIP-712 Signing: Payment authorization signatures
- TIP-20 Utilities: Balance, allowance, transfer functions
- Nonce Store: Replay protection (in-memory or SQLite)
- HMAC Auth: Server-facilitator authentication
Usage
use PrivateKeySigner;
use ;
async
Binaries
x402-client: CLI for making paid requestsx402-approve: CLI for approving the facilitator
Documentation
See the full documentation or llms.txt.
License
MIT