@dexterai/x402 v1.5.5

Access Pass

Connect a wallet, make one payment, get unlimited API access for a time window. No API keys, no accounts, no per-request signing.

Connect
Pay once
Get token
Unlimited
1
Hit the API
Server returns 402 with available tiers and pricing
2
Pay once
One USDC payment for your chosen duration tier
3
Get a token
Server returns a JWT access pass in the response
4
Unlimited calls
Use the token on every request — no more payments
5 minutes
$0.01 USDC
$0.12/hour
Popular
1 hour
$0.10 USDC
$0.10/hour
24 hours
$1.00 USDC
$0.04/hour
Connect a Solana wallet to try the demo
Live Demo
No Pass
Connect a wallet to try the demo
Select a tier above, then purchase an access pass
import { x402AccessPass } from '@dexterai/x402/server'; app.use('/api', x402AccessPass({ payTo: 'YourSolanaAddress...', tiers: { '1h': '0.50', // $0.50 for 1 hour '24h': '2.00', // $2.00 for 24 hours }, ratePerHour: '0.50', })); app.get('/api/data', (req, res) => { // This only runs with a valid access pass res.json({ data: 'premium content' }); });
Without Access Pass
  • Sign up for an account
  • Add a credit card
  • Subscribe to a monthly plan
  • Get an API key
  • Store it securely, rotate it
  • Get charged even when idle
  • Remember to cancel
With Access Pass
  • Connect a wallet
  • Pay once
  • Get a JWT token
  • Make unlimited requests
  • Token auto-expires
  • No accounts needed
  • No monthly charges
API Sellers
Replace Stripe subscriptions with crypto-native access passes. Zero billing infrastructure.
AI Agents
Agents buy access passes programmatically. No API keys to manage. One payment, unlimited calls.
RPC Providers
Offer pay-per-hour RPC access. Developers pay with their wallet, not a credit card.
Data Feeds
Sell time-limited access to real-time data. Price feeds, analytics, market data.
$npm install @dexterai/x402