---
title: "Solscan"
description: "Solana balances, history, details and blocks through the Pro API. Needs SOLSCAN_API_KEY and throws without it."
canonical_url: "https://explorers.agntn.dev/providers/solscan"
---
# Solscan

> Solana balances, history, details and blocks through the Pro API. Needs SOLSCAN_API_KEY and throws without it.

<provider-facts provider="solscan">



</provider-facts>

## Address it

```ts
const solscan = await create("solscan"); // SOLSCAN_API_KEY required
await solscan.getBalance("…", "solana");
```

One chain, one key, four reads. Nothing clever. Any other chain is an `UnsupportedChainError`, and a missing key is an `AuthError` from the constructor, before a single request goes out.

## What it reads

`pro-api.solscan.io/v2.0`: account detail for the balance, account transactions for history, transaction detail for one, block detail for a block. Balances, history, details and blocks; token holdings go through Helius.

## Gotchas

- Lamports, nine decimals. `balanceFormatted` is SOL.
- A Solana transaction signature is base58 and 64 to 88 characters long, and that's how `classifyInput` tells a signature from an address on this chain.
- Solscan and Helius disagree about which Solana questions exist: Solscan has the balance, Helius has the holdings. With both keys set, selection picks whichever comes first in the registry for the capability you asked for, so neither is wrong, they just don't overlap much.
- Solscan pages one way, backwards from the newest. So `sort: "asc"` and block bounds throw before a request. That's better than getting the newest rows in silence. For oldest first or slot ranges, use Helius.

## Where it lives

`src/providers/solscan.ts`.


## Sitemap

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