Script function send(from,to,value) { return new Promise((resolve,reject)=>{ let call = tronWeb.transactionBuilder.sendTrx(from, to, value, this.token.id) .then(res=>{ resolve(res); }) .catch(err=>{ reject(err); }) }) } send('TQG54RtZbTtFyHr6rBh2k2QxWx1MZG1hYn','TQG54RtZbTtFyHr6rBh2k2QxWx1MZG1hYn',1000)
The function send takes three arguments from, to and value, from is the account to send from, to is the account to send to and value is the amount to send.