Create a Rewards Program
Before integrating with the SDK, you need to setup and create a Rewards Program on https://xtoearn.tech.
Rewards Programhas a collection of
Rewardsthat you'd like to pay out to your Users. Youneed ot create a
Rewards Programalong with the
Rewardsand dploy it on chain before you can start paying theseout to Users.
Below are some guides for how to create
Rewards Programlfor various chains
- Select if you'd like to work on the NEAR Testnet or NEAR Mainnet
- We recommend you test out everything on the Testnet before dpeloying on Mainnet
- Login with your NEAR Wallet
- Select a
Rewards Program(Rewards Program name must be between 3-15 chars and can have AlphaNumeric characters, '-' and must not contain any spaces
- You'll now be asked to deposit 1 NEAR to initiate this Rewards Program. This deposit will be refunded when you make your Rewards Program inactive.
- Start adding
Rewards Program. A
Rewardhas the following properties:
Reward Name- Keep it something descriptive so it's easy to understand which Reward does what. For e.g. watch_video
Reward Amount- The amount of NEAR that will be paid for EACH reward pay out. For e.g. If the Reward Amount is set to 5 NEAR, each time this
Rewardis paid, the user will receive 5 NEAR
Reward Limit- The total Limit for how many times this reward will be given out. For e.g. if the Limit is 100, that
Rewardcan be paid out a 100 times
- Once you have added all the
Rewards, the app will ask you to Deposit the requisite NEAR tokens to create the sub-contract and deploy it on-chain. In other words, to make your
Reward Programlive on the NEAR chain
- Approve the transaction and your
Reward Programis now Deployed & Live! Congratulations!