Providers

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.
IDblockberry11 / 19BLOCKBERRY_API_KEY
Provider

Blockberry

  • sui
Chains
1
Auth
key
Operations
2 of 10
served 2 / 10

Operations

  • balancegetBalanceserved
  • historygetTxHistoryserved
  • tx detailgetTxDetailabsent
  • utxosgetUtxosabsent
  • pubkeygetPubkeyabsent
  • contractgetContractInfoabsent
  • tokensgetTokenBalancesabsent
  • transfersgetTokenTransfersabsent
  • gasgetGasDataabsent
  • blockgetBlockInfoabsent

Access

Createcreate("blockberry")
Import@agntn/explorers/providers/blockberry
Hostapi.blockberry.one/sui
Statusproviders on the docs worker

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.
  • 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.