Embed Widget
Add a staking widget to your token's website so holders can stake, unstake, and claim SOL rewards without leaving your site.
Quick Start
Paste this into your HTML wherever you want the widget:
<iframe
src="https://rflx.fi/embed?mint=YOUR_TOKEN_MINT_ADDRESS"
width="420"
height="700"
style="border: none; border-radius: 12px;"
allow="clipboard-write"
></iframe>Replace YOUR_TOKEN_MINT_ADDRESS with your token's mint address — the same one used when your pool was created.
The easiest way to get this code is to visit your pool on rflx.fi/pools, find your token, and click the Embed button next to the mint address. It copies the snippet with your mint pre-filled.
What's Included
The widget gives your users the full staking experience:
Wallet connection — Phantom, Solflare, Backpack, and other Solana wallets
Lock tiers — Flexible (1.00x), 1 Week (1.40x), Permanent (2.00x)
Stake tokens — Amount input with MAX button, tier selector, estimated shares preview
View positions — All active stakes with pending SOL rewards
Claim rewards — Claim individual lots or claim all at once
Unstake — Unstake unlocked positions (auto-claims pending rewards)
View Options
Control what the widget shows using the view query parameter:
mint (required)
Token mint address
Which pool to load
view (optional)
all, stake, positions
Default: all — shows both tabs
Both "Stake" and "Your Stakes" tabs:
Just the staking form — no positions tab:
Just the user's stakes and claim buttons — good for a "My Rewards" page:
Responsive Sizing
The widget works best at 380–450px wide. For mobile-responsive sites:
Security
No backend required on your end — the widget talks directly to Solana and the Reflex API
All transactions are client-side — users sign with their own wallet, identical to using rflx.fi directly
Your site cannot access iframe contents — browser same-origin policy prevents the embedding site from reading wallet data or intercepting transactions
Read-only API — the widget only reads pool data; all writes go to the Solana blockchain
Requirements
Your token must have an active Reflex staking pool (anyone can create one on rflx.fi/pools)
Works on any website that supports HTML iframes
Need Help?
Join our Discord if you need help setting up the widget.
