---
title: "TRONSCAN"
description: "TRON balances, history, details and blocks through apilist.tronscanapi.com. Needs TRONSCAN_API_KEY."
canonical_url: "https://explorers.agntn.dev/providers/tronscan"
---
# TRONSCAN

> TRON balances, history, details and blocks through apilist.tronscanapi.com. Needs TRONSCAN_API_KEY.

<provider-facts provider="tronscan">



</provider-facts>

## 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.
- Block ranges don't work here. The API offers time bounds or a single block, not a range. Previously, bounds vanished and the whole history came back. Now either bound throws `ExplorerError` before any request. A much safer answer.

## Where it lives

`src/providers/tronscan.ts`.


## Sitemap

See the full [sitemap](https://explorers.agntn.dev/sitemap.md) for all pages.
