Engineered for
trustless speed.
RelayBill isn't just a proxy; it's a high-performance settlement layer. Our protocol ensures that every request is authenticated, billed, and secured in under 15ms.
The request lifecycle.
Every packet moving through our network follows a strict cryptographic and financial audit. We've optimized every nanosecond of the gateway to ensure negligible latency.
In-Memory Shielding
Before hitting the database, we use an LRU Cache to perform IP-based rate limiting at the edge, dropping abusive traffic immediately.
SSRF Protection
Target URLs are validated against private IP blacklists (localhost, 127.0.0.1, 192.168.x.x) to prevent the proxy from being used against internal systems.
Cryptographic Lookup
The x-api-key is verified against the project configuration. We check key status, project ownership, and identity in a single optimized query.
Atomic Settlement
We wrap the balance decrement and the transaction log in a strictly atomic ACID transaction. No double-spending, no data drift.
Header Scrubbing
We use a 'Strict Whitelist' approach. Only safe headers (Content-Type, etc.) are forwarded. Internal headers are stripped to prevent leakage.
Response Decoration
We return the origin's response but inject custom metadata headers like X-Relay-Duration and X-Relay-Credits-Remaining.
Built for precision.
Deployed across 250+ Global Points of Presence. Our auto-failover architecture ensures your monetized endpoints remain active even during regional outages.
Content-Type: application/json
X-Relay-Duration: 12ms
X-Relay-Credits-Remaining: 942.50
X-Relay-Processed: true