hex.php 296 B

12345678910
  1. <?php
  2. include_once '../vendor/autoload.php';
  3. $tron = new \IEXBase\TronAPI\Tron();
  4. $tron->toHex('TT67rPNwgmpeimvHUMVzFfKsjL9GZ1wGw8');
  5. //result: 41BBC8C05F1B09839E72DB044A6AA57E2A5D414A10
  6. $tron->fromHex('41BBC8C05F1B09839E72DB044A6AA57E2A5D414A10');
  7. //result: TT67rPNwgmpeimvHUMVzFfKsjL9GZ1wGw8