Integration Guide
This guide helps third-party developers generate referral links for integration into their bots (Telegram, Twitter, Discord, etc.) using the ShillBill system. These links allow users to earn referral fees from token purchases initiated via their custom ShillBill links.
To receive referral rewards, your SB account must have at least 0.01 SOL on the balance.
Overview
The code below generates referral links that combine:
A token address (Base58-encoded SPL token from Solana)
A user ID (the ShillBill user earning referral fees)
A buy type (small, regular, or large), selected via link prefix:
bl_
,b_
,br_
Key Parameters
token
: The Base58-encoded SPL token address to promote.userId
: The ShillBill user ID of the person who will receive referral rewards.Buy Type Prefix The referral link uses a prefix to indicate buy intent:
bl_
→ small buyb_
→ standard buybr_
→ large buy
How to Find Your userId
userId
Tap Menu → Refer friends
You’ll get a referral link similar to:
Extract the user ID from the link:
Code Example
Example Output
Last updated