High-Level Flow
Qwery's workflow is designed for efficiency, dividing responsibilities between providers, consumers, and the platform:
Provider integrates Qwery SDK into their API.
Qwery issues:
provider keys
revenue wallet
proxy endpoint: https://api.qwery.xyz/v1/<slug>
Consumer/agent:
pays in USDC to Qwery escrow
calls proxy with tx reference
Qwery:
verifies payment on Solana
proxies the call
executes revenue split
returns response + onchain receipt
Payment Flow: User → API Server → Facilitator → Solana Blockchain
Step-by-Step:
User requests paid resource
API server calls /create-payment on facilitator
Facilitator returns unsigned Solana transaction
User signs transaction with their wallet (Phantom, etc.)
API server calls /settle with signed transaction
Facilitator co-signs, pays fees, submits to blockchain
Solana confirms in ~400ms
API server grants user access
Timing:
Payment creation: ~200ms
User signing: ~2-5s (wallet interaction)
Settlement: ~800ms (blockchain confirmation)
Total: ~3-6 seconds
Last updated