node-js-sample-client/nestsample.js
//Get NFT card to user and create it on user account
Get NFT card to user and create it on user account
Get NFT card to user and create it on user account
async function drop_card() {
  try {
    await globals.WAX.transaction({
      actions: [
        {
          account: globals.NEST_CONTRACT,
          name: "carddrop",
          authorization: [
            {
              actor: globals.WAX_ACCOUNT,
              permission: "active",
            },
          ],
          data: {
            owner: globals.WAX_ACCOUNT, 
            cardid: 0, 
            username: "", 
          },
        },
      ],
    });
  } catch (error) {
    console.log(error);
  }
}
async function drop_card ( ) { try { await globals . WAX . transaction ( { actions : [ { account : globals . NEST_CONTRACT , name : "carddrop" , authorization : [ { actor : globals . WAX_ACCOUNT , permission : "active" , } , ] , data : { owner : globals . WAX_ACCOUNT , cardid : 0 , username : "" , } , } , ] , } ) ; } catch ( error ) { console . log ( error ) ; } }
Get NFT card to user and create it on user account
Get NFT card to user and create it on user account
//Your WAX account //Card's id on TABLE cards //User WAX account