wallet tron transactions
This commit is contained in:
20
app/Tools/TronTools.php
Normal file
20
app/Tools/TronTools.php
Normal file
@ -0,0 +1,20 @@
|
||||
<?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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user