Providers

TRONSCAN

TRON balances, history, details and blocks through apilist.tronscanapi.com. Needs TRONSCAN_API_KEY.
IDtronscan09 / 19TRONSCAN_API_KEY
Provider

TRONSCAN

  • tron
Chains
1
Auth
key
Operations
4 of 10
served 4 / 10

Operations

  • balancegetBalanceserved
  • historygetTxHistoryserved
  • tx detailgetTxDetailserved
  • utxosgetUtxosabsent
  • pubkeygetPubkeyabsent
  • contractgetContractInfoabsent
  • tokensgetTokenBalancesabsent
  • transfersgetTokenTransfersabsent
  • gasgetGasDataabsent
  • blockgetBlockInfoserved

Access

Createcreate("tronscan")
Import@agntn/explorers/providers/tronscan
Hostapilist.tronscanapi.com
Statusproviders on the docs worker

Address it

ts
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. balanceFormatted is TRX.
  • TRON hashes are 64 hex characters without 0x, so classifyInput on 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.