Providers
TRONSCAN
TRON balances, history, details and blocks through apilist.tronscanapi.com. Needs TRONSCAN_API_KEY.
Provider
TRONSCAN
- tron
- Chains
- 1
- Auth
- key
- Operations
- 4 of 10
served 4 / 10
Operations
- balance
getBalanceserved - history
getTxHistoryserved - tx detail
getTxDetailserved - utxos
getUtxosabsent - pubkey
getPubkeyabsent - contract
getContractInfoabsent - tokens
getTokenBalancesabsent - transfers
getTokenTransfersabsent - gas
getGasDataabsent - block
getBlockInfoserved
Access
- Create
create("tronscan") - Import
@agntn/explorers/providers/tronscan - Host
apilist.tronscanapi.com - Statusproviders on the docs worker
Address it
const tronscan = await create("tronscan"); // TRONSCAN_API_KEY required
await tronscan.getBalance("T…", "tron");
The key goes in the TRON-PRO-API-KEY header. One chain, and UnsupportedChainError for every other one. The plainest provider in the package, which is a compliment.
What it reads
Account detail for the balance, the transaction list for history, transaction info for one, block detail for a block.
Gotchas
- Sun, six decimals.
balanceFormattedis TRX. - TRON hashes are 64 hex characters without
0x, soclassifyInputon this chain treats such a string as a transaction. - No token or contract reads and no fee data.
Where it lives
src/providers/tronscan.ts.