Example projects of using xtoearn-near-sdk
- clone this repo to a local folder
- switch to the
single-program
example directory using the commandcd single-program
- run
npm i
to download all the necessary dependencies - create a
.env
file in the root directory i.e., single-program - copy the environment variables from
.env.example
file - set the corresponding values in the
.env
file - set the
reward_name
andprogram_name
innear-interface.js
- run
npm run start
fromsingle-program
folder - Log in with near wallet
- Send reward by clicking the
Send Reward
button