1234567891011121314151617 |
- <?php
- include_once '../vendor/autoload.php';
- use IEXBase\TronAPI\Provider\HttpProvider;
- use IEXBase\TronAPI\Tron;
- $fullNode = new HttpProvider('https://api.trongrid.io');
- $solidityNode = new HttpProvider('https://api.trongrid.io');
- $eventServer = new HttpProvider('https://api.trongrid.io');
- $privateKey = 'private_key';
- //Example 1
- try {
- $tron = new Tron($fullNode, $solidityNode, $eventServer, $privateKey);
- } catch (\IEXBase\TronAPI\Exception\TronException $e) {
- die($e->getMessage());
- }
|