Referral Program
The Referral Program is an open-source program used by Jupiter Programs (or any other programs) to enable developers to earn fees.
Open Source Repository: To understand and make use of the referral program better.
Jupiter API Integrators
The Jupiter Programs use the Referral Program to allow developers to earn fees when integrating with Jupiter. Below are some resources to help you quickly get started. There are a different ways to setup such as via the Jupiter Referral Dashboard or using the provided scripts.
- Jupiter Referral Dashboard: To view and manage your referral accounts used with Jupiter APIs.
- Add Fees to Ultra API: To add fees to your Ultra API integration.
- Add Fees to Swap and Trigger API: To add fees to your Swap and Trigger API integration.
- Add Fees to Terminal: To add fees to your Terminal integration.
Other Program Integrators
Project Usage
If you have a project/product that runs a program on the Solana blockchain, you can integrate the Referral Program to allow/share revenue with the integrators of your program.
Similar to how Jupiter Programs uses the Referral Program to help developers earn fees and/or share the revenue with Jupiter. For example, Jupiter Ultra uses the Jupiter Swap program which relies on the Referral Program.
- Create a
Project
by callinginitialize_project
with your chosenbase
key and a projectname
(base
key refers to a key identifier of your project). - Set a
default_share_bps
to share the fees with your referrers (or integrators). - An example of a
Project
account: Jupiter Ultra Project
Referrer Usage
If you are a referrer such as a developer or integrator of a project that runs a program on the Solana blockchain, you can create the necessary accounts via the Referral Program to earn fees.
- The program must be integrated with the Referral Program.
- Create a
Referral
account by callinginitialize_referral_account
with the correctProject
account, theReferral
account, and your ownPartner
account (Partner
account is the admin of this referral account). - Create the necessary
Referral
token accounts for theReferral
account to receive fees in.