Download the PHP package just-luka/php-tron without Composer
On this page you can find all versions of the php package just-luka/php-tron. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download just-luka/php-tron
More information about just-luka/php-tron
Files in just-luka/php-tron
Package php-tron
Short Description PHP package for interacting with TRX network
License MIT
Informations about the package php-tron
![]() |
A PHP library for interacting with the TRON blockchain.
Package provides user-friendly extension API. The latest version of TronGrid's proprietary API is v1. TronGrid API service has the features of low latency, high consistency, high availability and partition fault tolerance.
Note: In order to ensure the reasonable allocation of requested resources, all request APIs need to include the API Key parameter.
Requests without an API Key will be severely limited or may not receive a response.
Features
- Generate TRON address
- Check account balance
- Check transaction details
- List assets from chain
- List transactions by contract address
Installation
Install the package via Composer:
Setup
Initialize the client (Mainnet):
Initialize the client (Shasta Testnet):
Wallet
Generate a single TRON address:
Generate multiple addresses at once:
Account
Fetch account info and balance:
Fetch TRX transfer blocks for an account:
Fetch TRC20 transactions for an account:
Contract
Fetch transactions for a contract address:
Assets
Each Asset object contains:
Filters
Filters can be chained on account() and contract() calls before executing a query.
Calling the same filter twice overwrites the previous value.
| Method | Parameter | Description |
|---|---|---|
filterOnlyConfirmed() |
— | Return only confirmed transactions. Cannot be combined with filterOnlyUnconfirmed(). |
filterOnlyUnconfirmed() |
— | Return only unconfirmed transactions. Cannot be combined with filterOnlyConfirmed(). |
filterLimit(int) |
1–200 (default 20) |
Number of results per page. |
filterFingerprint(string) |
fingerprint from previous response | Pagination cursor. Other filters must remain the same across pages. |
filterOrderBy(string) |
block_timestamp,asc | block_timestamp,desc |
Sort order (default desc). |
filterMinTimestamp(string) |
Unix ms timestamp | Return results after this timestamp. |
filterMaxTimestamp(string) |
Unix ms timestamp | Return results before this timestamp. |
filterContractAddress(string) |
Base58 or hex address | Filter by a specific token contract. |
filterOnlyTo() |
— | Only transactions to this address. |
filterOnlyFrom() |
— | Only transactions from this address. |
Example — paginate confirmed USDT transfers in a time window:
Fetch the next page using the fingerprint from the last result:
Error Handling
All versions of php-tron with dependencies
ext-curl Version *
ext-gmp Version *
kornrunner/secp256k1 Version ^0.3
simplito/elliptic-php Version ^1.0.12
kornrunner/keccak Version ^1.1
