JavaScript
Setup a lambda function or an endpoint that will send the B3TR tokens to the user, providing also a proof and impacts of the rewarding action.
We will use @vechain/sdk-network and @vechain/vebetterdao-contracts to interact with VeBetterDAO's X2EarnRewardsPool
contract to distribute the rewards.
Run the following command to install the packages:
To distribute the rewards you will need 2 information:
Node URL
Your
APP_ID
on VeBetterDAO: create app here to obtain the APP_ID.
Now you can distribute the reward like this:
Sustainability Proof
Read more about the proof standard and how we expect you to provide it in the Sustainability Proofs and Impacts section.
Last updated
Was this helpful?