🍁Get PSce owner wallet balance

Detection Authorization of PSce wallet.

 async function init(param1,param2,param3)
{

// A restriction of using this function only can be execute PSce owner wallet.
 if (EXECUTER_ADDRESS!==OWNER_ADDRESS) 
 return "You dont have permission for execute this scenario!"; 


 var dummyTest=await Transaction.getBalance(EXECUTER_ADDRESS);
 // EXECUTER_ADDRESS (who executes this PSce) get balance
 return dummyTest;
 // return the balance
}

Last updated