Client wrapper handles the entire 402 negotiation, signing, and retry flow — you just make requests as normal.
Quickstart with Agent
The fastest way to get started — let your AI agent handle setup and payments for you.How It Works
Client handles 402
The client automatically receives the
402 Payment Required response, signs a USDC payment authorization, and retries the request.Supported Tokens & Networks
Tempo MPP payments use USDC on the Tempo network:| Network | USDC Contract Address |
|---|---|
| Tempo (mainnet) | 0x20c000000000000000000000b9537d11c60e8b50 |
Implementation
Install
Set Up Your Account
Create aTempoAccount from your private key. This account will sign payments on your behalf.
Make a Paid API Call
Client intercepts the 402 response, constructs and signs the payment using your TempoAccount, and retries the request automatically. You just see the final 200 response with your data.