High-frequency payment gateway for pay-per-use APIs with millisecond settlement speeds.
YellowRPC is a payment gateway designed specifically for high-frequency APIs. It enables a true "Pay-Per-Request" model with near zero-latency settlement, bridging the gap between static Web3 payments (x402) and the real-time needs of the machine economy.
The existingx402 (Payment Required) standard for crypto is impractical for high-performance applications because:
Instead of broadcasting a transaction for every request, the user opens a secure State Channel with the gateway.
Yellow RPC operates on a "Off-Chain First" philosophy. To achieve sub-millisecond latency for high-frequency trading and AI agents, we move 99% of operations off the blockchain, using on-chain settlement only when you want to deposit to your unified balance.
There are tow different balance types inside Yellow Network
Unified Balance: This is the user's primary ledger. When a user deposits funds into the Yellow RPC smart contract on-chain, it is credited here. It acts as the "Master Wallet" for the user within our system.
App Session Balance (The Active Channel): To use the App, users must "allocate" funds from their Unified Balance to a specific App Session. This creates a locked, off-chain state channel. The API keys draw from this balance directly.
Unlike standard dApps that require a wallet signature for every action, we use a Custodial Session Key model. This allows our backend to auto-sign settlements on the user's behalf without interrupting their workflow.
/session/create.sk_user, pk_user) inside a secure enclave.pk_user (Public Key) to the frontend./session/activate. The backend verifies the signature and marks the session as ACTIVE in Redis.Once a session is active, the user creates API Keys. These keys are pointers to the App Session.
/api-key/createapp_session. Multiple API keys point to the same session, allowing for unified billing across different user devices.This is the high-performance loop where latency matters most. We use an Optimistic Debit model.
Note: At this stage, no data is sent to the Yellow Network. The debt is tracked locally in pendingSettlements.
To ensure trustlessness, we periodically sync the local Redis state with the global Yellow Network.
pendingSettlements > $1.00.
