🍁sendToken Example

A sample usage for sending token from PSce to defined address.

The most important thing is sender address will be Smart Scenario Address. So you can send your token or PIRI to PSce. You cannot send your assets to receipt wallet address though PSce.

You can send your token or PIRI to PSce and PSce will send your defined address wallet depends on your code.

Below code lines explained that Pirichain Smart Scenario is sending a token (which belong asset ID 10001) to your defined wallet address.

 async function init(param1,param2,param3)
{
 var dummyTest=await Transaction.sendToken('PRTMRPqsxkGGCQ7UE9s6TZ4iNC4cM2Qa1mvCS8Unehv',0.1,10001)
 return dummyTest;
}

Last updated