Documentation Index
Fetch the complete documentation index at: https://docs.toju.network/llms.txt
Use this file to discover all available pages before exploring further.
Overview
We implement a pay-as-you-go model for decentralized storage using blockchain payments. Unlike traditional cloud storage with monthly subscriptions, users pay only for what they store and for how long. We currently support SOL (Solana) and USDFC (Filecoin).How It Works
Get Cost Estimate
The system calculates the cost based on:
- Total file size
- Storage duration
- Current network rates
Onchain Deposit
For SOL: a deposit is created on the Solana blockchain via our smart contract. For USDFC: a token transfer is sent on Filecoin.
Cost Calculation
Storage costs are calculated using this formula:You can estimate costs before uploading using the
estimateStorageCost SDK method.Payment Flow
Payment Model
When you pay for storage:- Files are pinned to IPFS before the deposit is created
- Payment is processed — SOL via our smart contract, or USDFC via direct token transfer
- Files are accessible for the full duration you paid for
- No recurring subscriptions or credit cards needed
- Transparent, verifiable payments on-chain
- Storage guaranteed for the full paid duration
- Simple one-time payment per upload
Transaction Records
Every payment is recorded both:Onchain
Permanent record on Solana blockchain with transaction signature
Database
Indexed in our database for quick lookup and history tracking
Supported Payment Chains
We currently support two payment methods:- SOL (Solana): Payments via our Solana smart contract with on-chain deposit verification
- USDFC (Filecoin): Direct stablecoin transfers on Filecoin (1:1 with USD)
- Base (ETH): Ethereum L2 payments for lower gas fees
- Additional chains: Based on community demand
All payment methods store data on the same IPFS network. You choose whichever chain you prefer — the storage experience is identical.
Benefits
For Users:- No credit card required
- Pay only for what you use
- Transparent, verifiable costs
- No recurring subscriptions
- Easy integration with crypto wallets
- No payment processing fees
- Instant settlement
- Global accessibility
Limitations
- Minimum storage duration: 7 days
- Gas fees apply for each transaction
- Requires sufficient wallet balance
- Files expire after storage duration ends