node-js-sample-client/nestsample.js
//create leader board's prize
create leader board's prize
create leader board ' s prize
async function create_prize() {
  try {
    await globals.WAX.transaction({
      actions: [
        {
          account: globals.NEST_CONTRACT,
          name: "createprize",
          authorization: [
            {
              actor: globals.WAX_ACCOUNT,
              permission: "active",
            },
          ],
          data: {
            owner: globals.WAX_ACCOUNT, 
            boardid: 0, 
            mode: 0, 
            value: "", 
          },
        },
      ],
    });
  } catch (error) {
    console.log(error);
  }
}
async function create_prize ( ) { try { await globals . WAX . transaction ( { actions : [ { account : globals . NEST_CONTRACT , name : "createprize" , authorization : [ { actor : globals . WAX_ACCOUNT , permission : "active" , } , ] , data : { owner : globals . WAX_ACCOUNT , boardid : 0 , mode : 0 , value : "" , } , } , ] , } ) ; } catch ( error ) { console . log ( error ) ; } }
create leader board's prize
create leader board ' s prize
//Your WAX account //Leader board's id from lboards TABLE //Prize's mode: 0 - absolute values, 1 - percents // String of values like "100,50,10,"