wallet tron transactions

This commit is contained in:
cano
2024-03-25 06:15:36 +08:00
parent 4b8f205e86
commit 489090382f
83 changed files with 5424 additions and 1343 deletions

20
app/Tools/TronTools.php Normal file
View 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);
}
}