Skip to content

Referral Widget

The Vouch Referral Widget lets any website offer PLS staking with your referral code — no code required, just an iframe. Your visitors connect their wallet, deposit PLS into Vouch liquid staking, and your referral fee is split out atomically by the ReferralDeposit contract.

It's a ready-made, Vouch-branded UI built on the Referral SDK — so you get live quotes, fee disclosure, and wrong-network handling without writing a line of JavaScript.

Live example

This is the actual widget, embedded with the snippet shown below (referral code #3, dark theme):

Where to get it

ResourceLocation
Widget hostrefwidget.vouch.run
Configurator (customize + snippet generator)refwidget.vouch.run/config.html
Widget source & issuesgithub.com/Vouchrun/ref-widget
Embed guidedocs/EMBED.md
Deployed contract0x04988E655163f7368683C9c6d668A8ccc7b142ad on PulseChain
Generate Referral Codeapp.vouch.run/referral

Note: the contract is deployed on PulseChain mainnet only — there is no testnet deployment yet, so test with small real deposits (the protocol minimum is 10,000 PLS).

Embedding

Drop this snippet into any web page — WordPress, static HTML, React, anything that renders an iframe:

html
<iframe
  src="https://refwidget.vouch.run/?ref=YOUR_CODE_ID"
  width="420"
  height="500"
  style="border: 0; border-radius: 30px;"
  allow="clipboard-write"
></iframe>

Replace YOUR_CODE_ID with your referral code ID. Don't have one yet? Generate a referral code from the Vouch app.

The easiest way to build a customized snippet is the Widget Configurator — pick your code, theme, and colors, then copy the generated code.

URL parameters

ParamTypeDefaultDescription
refnumberReferral code ID. If omitted, the user enters a code manually.
themedark / lightdarkVouch color theme (matches app.vouch.run).
accenthex colorVouch orangeButton color override (e.g. %237c3aed).
borderhex color#333333 dark / #E2E0D0 lightWidget card border color override.

Hex values must be URL-encoded (#%23). Invalid values are ignored and the Vouch theme defaults apply.

The Vouch logo and "Powered by Vouch" branding always remain — the widget carries Vouch branding regardless of color customization.

Embed size

Set the iframe width / height to fit your layout. Recommended range: 320–800px wide, 480–900px tall (default 420×500). The widget scales to fill the iframe.

What your users see

  1. Connect wallet — MetaMask, Rabby, or WalletConnect (mobile supported)
  2. Review the fee — your referral fee is shown up-front before they deposit
  3. Deposit PLS — live quote shows exactly how much vPLS they'll receive and the fee amount
  4. Done — one transaction; the fee goes straight to your payout wallet, vPLS to them

The fee is taken from the freshly minted vPLS, never from the user's deposit, and the widget prompts users to switch to PulseChain (chain ID 369) if they're on the wrong network.

Learn more