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.
Provider
Blockberry
- sui
- Chains
- 1
- Auth
- key
- Operations
- 2 of 10
served 2 / 10
Operations
- balance
getBalanceserved - history
getTxHistoryserved - tx detail
getTxDetailabsent - utxos
getUtxosabsent - pubkey
getPubkeyabsent - contract
getContractInfoabsent - tokens
getTokenBalancesabsent - transfers
getTokenTransfersabsent - gas
getGasDataabsent - block
getBlockInfoabsent
Access
- Create
create("blockberry") - Import
@agntn/explorers/providers/blockberry - Host
api.blockberry.one/sui - Statusproviders on the docs worker
Address it
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
getBlockInfostays unsupported rather than approximated. - A Sui address is
0xplus 64 hex characters, which on other chains would look like a transaction hash.classifyInputknows 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.