Credit Economics
A deep dive into the decentralized economic model of rNet, where users bring their own compute via a globally shared wallet.
The Unified Wallet Architecture
The rNet ecosystem abstracts away complex, fragmented SaaS subscriptions. Users fund a single, centralized rNet wallet. When they authenticate into your application, your backend leverages their cryptographic token to route AI inference requests through the rNet proxy, seamlessly deducting micro-credits from their global balance.
Global Liquidity
A single wallet balance powers usage across every connected application in the ecosystem.
Zero-Liability Devs
You never pay for user inference out of pocket. Users fund their own compute.
Transparent Burn Rate
Users have complete visibility into their micro-transactions across the network.
State Handling & Exhaustion
| Wallet State | Proxy Behavior |
|---|---|
| Sufficient Liquidity | Inference proceeds normally. Cost is calculated and deducted post-generation. |
| Insufficient Liquidity | Proxy terminates request immediately. HTTP 402 Payment Required. |
| Zero Balance / Exhausted | All inference attempts hard fail until user injects capital. |
Graceful Degradation Implementation
Robust applications must handle 402 Payment Required errors gracefully. When the rNet proxy rejects a request due to exhaustion, your backend should catch this state and propagate a user-friendly resolution path to the frontend.
// Protected AI Execution Route
app.post('/api/ai', requireRNetSession, async (req, res) => {
try {
const response = await gemini.chat(
req.body,
req.session.rnet.accessToken
);
res.json(response);
} catch (err) {
// Detect Liquidity Exhaustion
if (err.status === 402 || err.code === 'INSUFFICIENT_CREDITS') {
return res.status(402).json({
error: 'Wallet depleted. Inject credits to continue inference.',
actionRequired: true,
rechargeUrl: 'https://www.rnetai.org/dashboard'
});
}
// Unhandled exception
console.error('Inference pipeline failure:', err);
res.status(500).json({ error: 'Internal system failure.' });
}
});Capital Injection
Users manage their liquidity exclusively through the rNet Dashboard. Once a transaction clears and capital is injected, it instantly becomes available to your application without requiring session invalidation.