x402 Payment Protocol
Syra API uses the x402 payment protocol for authentication and payment. Instead of traditional API keys, you pay for each request using USDC on Solana.How It Works
- Payment Required: Each API endpoint requires payment in USDC
- Automatic Settlement: Payments are settled automatically on-chain
- No API Keys: No need to manage API keys or subscriptions
- Pay-per-use: Only pay for the requests you make
Payment Headers
When making requests, include the x402 payment headers:Request Headers
Response Headers
Successful responses include:Using with Agent Wallet
The Syra platform provides agent wallets for seamless integration:Pricing
Each endpoint has a specific cost in USD, settled in USDC:- News, Events, Sentiment: $0.01 USD per request
- Trading Signals: $0.01 USD per request
- Nansen Data: $0.05 USD per request
- Analytics Summary: $0.02 USD per request
- DexScreener: $0.02 USD per request
Payment Settlement
Payments are settled using:- Currency: USDC (SPL token on Solana)
- Network: Solana mainnet
- Settlement: Automatic on successful response
- Fallback: Facilitator failures are handled gracefully
Error Handling
Insufficient Balance
If your wallet has insufficient USDC:Payment Failure
If payment settlement fails:Development Mode
In development (non-production),/dev endpoints are available without payment:
Security
- All payments are non-custodial
- Agent wallets are controlled by users
- Payments settle directly on-chain
- No credit card or personal information required
Next Steps
x402 Protocol
Deep dive into x402 payment system
News API
Try your first paid API call