21 lines
362 B
PHP
21 lines
362 B
PHP
<?php
|
|
|
|
namespace App\Tools;
|
|
|
|
use IEXBase\TronAPI\TronAwareTrait;
|
|
|
|
class TronTools
|
|
{
|
|
use TronAwareTrait;
|
|
|
|
static function hexToBase58(string $hex): string
|
|
{
|
|
return (new TronTools)->address2HexString($hex);
|
|
}
|
|
|
|
static function base58ToHex(string $base58): string
|
|
{
|
|
return (new TronTools)->hexString2Address($base58);
|
|
}
|
|
}
|