| 123456789101112131415161718192021 | 
							- <?php
 
- include_once '../vendor/autoload.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->getMessage());
 
- }
 
- //option 1
 
- $tron->sendTransaction('to',0.1, 'hello');
 
- //option 2
 
- $tron->send('to',0.1);
 
- //option 3
 
- $tron->sendTrx('to',0.1);
 
 
  |