cropIntegration 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.

triangle-exclamation

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 buy

    • b_ → standard buy

    • br_ → large buy

How to Find Your userId

  1. Tap Menu → Refer friends

  2. You’ll get a referral link similar to:

  3. Extract the user ID from the link:

Code Example

Example Output

Last updated