Quick Start

Getting started with a new Referral Program is as simple as:

  1. Install the Javascript SDK: Installing the SDK automatically instruments Page Views and Wallet Connection events, and will connect a referral link to an on-chain actions. The SDK Is lightweight and can be configured in a few lines of code.

  2. Allow users to create Referral Codes: The SDK provides functions to easily create custom referral codes directly from your frontend, to make it easy to let all users act as referrers.

  3. Allow users to withdraw their rewards: Ultimately, we want to show users how much they earned and let them easily withdraw it. Spindl creates a smart contract for you under the hood, and provides easy to use functions to interact with it.

Last updated