StreamFi API & Documentation
Welcome to the StreamFi developer and user documentation. Here you can find everything from API endpoints to details about our reward systems.
Authentication
StreamFi uses Solana wallet signatures for authentication. To authenticate requests, you must include a signature header.
Headers
Example (JavaScript)
const message = new TextEncoder().encode(`Sign in to StreamFi: ${timestamp}`);
const signature = await window.solana.signMessage(message, 'utf8');How to Earn $STRM
StreamFi rewards creators for high-quality content. The more views your videos get, the more $STRM you earn.
1. Upload Content
Upload vertical short-form videos. Ensure they are engaging to maximize watch time.
2. Accumulate Views
Every valid view (5+ seconds) earns you a small amount of STRM.
3. Reach Threshold
You must accumulate at least 0.05 SOL worth of STRM to claim.
4. Claim Rewards
Go to your Dashboard to claim your earnings directly to your Solana wallet.
Ads & Marketing
StreamFi generates revenue through strategic ad placements and marketing partnerships. This revenue is the lifeblood of our creator economy.
Revenue Sharing
A significant portion of ad revenue is distributed directly to creators based on views and engagement.
Targeted Campaigns
Brands can run targeted campaigns, boosting visibility for specific tokens or projects within the Solana ecosystem.
Community Growth
Marketing funds are also used to grow the user base, bringing more eyes to your content.
Transparency
We believe in transparency. Ad revenue allocation is visible on-chain (coming soon).
StreamFi Premium
Unlock the full potential of StreamFi with a Premium subscription. Get exclusive perks and maximize your earning potential.
Ad-Free Experience
Enjoy uninterrupted viewing with zero ads in your feed.
Boosted Rewards
Earn 1.5x more $STRM for every video you watch.
Exclusive Badges
Stand out with a special Premium badge on your profile and comments.
Endpoints
/api/feedGet the main video feed
/api/clipsUpload a new clip
/api/walletGet wallet session
/api/wallet/connectConnect wallet
/api/rewards/summaryGet user rewards
/api/leaderboardsGet global leaderboards
/api/tx-logsGet transaction history
/api/rpc/load-balancerGet RPC node status
Example Response
{
"id": "clip_ponke",
"tokenTag": "$PONKE",
"title": "A day in the life of a trader",
"views": 18240,
"strmPerView": 0.00003,
"aiScore": 0.92
}