---
title: "Blockberry"
description: "Sui balances and history through api.blockberry.one. Needs BLOCKBERRY_API_KEY. No block lookup. Sui has checkpoints and the contract wants a block number."
canonical_url: "https://explorers.agntn.dev/providers/blockberry"
---
# Blockberry

> Sui balances and history through api.blockberry.one. Needs BLOCKBERRY_API_KEY. No block lookup. Sui has checkpoints and the contract wants a block number.

<provider-facts provider="blockberry">



</provider-facts>

## Address it

```ts
const blockberry = await create("blockberry"); // BLOCKBERRY_API_KEY required
await blockberry.getBalance("0x…", "sui");
```

## What it reads

Account balance and account activity on the Sui endpoint. Balances and history only.

## Gotchas

- MIST, nine decimals, taken from the coin metadata in the answer when it's there.
- Sui has checkpoints rather than blocks, and a checkpoint lookup doesn't match the library's contract of one block number in, one block out, so `getBlockInfo` stays unsupported rather than approximated.
- Need a history range? `startBlock` and `endBlock` throw `ExplorerError` before any request, even at `0`. Sui counts checkpoints, but activity rows have none to count. No other provider here reads Sui, and a loud no beats a range that quietly means everything.
- A Sui address is `0x` plus 64 hex characters, which on other chains would look like a transaction hash. `classifyInput` knows the chain and treats it as an address here; a base58 digest of 43 or 44 characters is a transaction.

## Where it lives

`src/providers/blockberry.ts`.


## Sitemap

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