title: Tron wallet integration in php application
body: <p>I am developing a PHP application for TRON blockchain. I'm using IEXBase TronAPI.</p>
  <p>I need to send some TRON from the user account to the contract address. But the app works only when providing pvt_key. But can't use user pvt_key. So need to integrate the TRON wallet in PHP application.</p>
  <p>While providing pvt_key all works fine. But I need to integrate the wallet on behalf of the PVT key.</p>
  <p>code:</p>
  <pre><code>&lt;?php
  include_once '../vendor/autoload.php';
  include_once('../util/db.php');
  include_once('../util/registrationClassnew.php');
  
  
  
  $fullNode = new \IEXBase\TronAPI\Provider\HttpProvider('https://api.trongrid.io');
  $solidityNode = new \IEXBase\TronAPI\Provider\HttpProvider('https://api.trongrid.io');
  $eventServer = new \IEXBase\TronAPI\Provider\HttpProvider('https://api.trongrid.io');
  
  try {
      $tron = new \IEXBase\TronAPI\Tron($fullNode, $solidityNode, $eventServer);
  } catch (\IEXBase\TronAPI\Exception\TronException $e) {
      exit($e-&gt;getMessage());
  }
  
  
  $tron-&gt;setAddress('TFBZGTizGT8XrDKzNFbMuJ7AGvisD2E9u5');
  // $tron-&gt;setPrivateKey('pvt key');
  var_dump($tron-&gt;send('TM1tn547Gckov1kKvbFMrnGpSLcwXVYGbR', 1.5));
  </code></pre>