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

x-wallet-addressYour Solana public key
x-signatureSigned message of timestamp
x-timestampCurrent Unix timestamp

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

GET/api/feed

Get the main video feed

curl https://streamfi.app/api/feed
POST/api/clips

Upload a new clip

curl https://streamfi.app/api/clips
GET/api/wallet

Get wallet session

curl https://streamfi.app/api/wallet
POST/api/wallet/connect

Connect wallet

curl https://streamfi.app/api/wallet/connect
GET/api/rewards/summary

Get user rewards

curl https://streamfi.app/api/rewards/summary
GET/api/leaderboards

Get global leaderboards

curl https://streamfi.app/api/leaderboards
GET/api/tx-logs

Get transaction history

curl https://streamfi.app/api/tx-logs
GET/api/rpc/load-balancer

Get RPC node status

curl https://streamfi.app/api/rpc/load-balancer

Example Response

{
  "id": "clip_ponke",
  "tokenTag": "$PONKE",
  "title": "A day in the life of a trader",
  "views": 18240,
  "strmPerView": 0.00003,
  "aiScore": 0.92
}