The Web3 Stripe for APIs. Create payment channels, make API calls, payments happen automatically. No API keys, no gas fees per request, just use your wallet and start building.
PipeGate is a decentralized API monetization protocol that changes how APIs handle payments and access control. By replacing traditional API keys with payment channels and one time payments, it enables true pay-per-call pricing without gas fees for each request.
The protocol consists of three main components:
- A client-side middleware that automatically handles payment channel creation, request signing, and payment management
- A server-side middleware that verifies signatures and manages payment channel states
- A smart contract for a new payment channel creation
Key Features:
- Gasless microtransactions using payment channels
- Automatic request signing and payment handling
- No API keys needed - just your wallet
- Real-time balance updates
- Self-served onboarding
This solves three critical problems:
- Too many API keys for each product
- Complex API & Auth management for providers
- High payment gateway fees
PipeGate is built using a stack of modern Web3 technologies and standard web protocols:
Core Components:
-
- Payment Channel Factory for channel creation
- Channel contracts for handling payments
- Beacon Proxy pattern for low deployment fees
-
- Built with viem for blockchain interactions
- Axios interceptors for seamless request modification
- State management for channel tracking
-
- Signature verification
- Payment channel state management
- One time payment verification for API calls
-
Register your API:
-
Add the server-side middleware:
- Add the PipeGate server middleware to your API server
- Supported with axum in rust lib
-
Close the channel & withdraw
-
Create a payment channel:
-
Make API calls:
- Use the client-side SDK to add interceptor to your axios instance with this sdk
With this project, we've tried to make the complex payment channel system completely invisible to both API providers and consumers, while maintaining security and efficiency.
- Dhruv Agarwal - Server Side SDK & Smart Contract Development
- Kushagra Sarathe - CLient Side SDK