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.

circle-info

The easiest way to get this code is to visit your pool on rflx.fi/poolsarrow-up-right, 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:

Parameter
Values
Description

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:

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/poolsarrow-up-right)

  • Works on any website that supports HTML iframes

Need Help?

Join our Discordarrow-up-right if you need help setting up the widget.