Providers

Blockberry

Sui balances and history through api.blockberry.one. Needs BLOCKBERRY_API_KEY; block lookup does not fit the contract of one block number in, one block out.
provider
create("blockberry")
auth
BLOCKBERRY_API_KEY
chains
Sui
capabilities
balance, history
endpoint
api.blockberry.one/sui
default chain
sui

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 is there.
  • Sui has checkpoints rather than blocks, and a checkpoint lookup does not match the library's contract of one block number in, one block out, so getBlockInfo stays unsupported.
  • 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.

@agntn/explorers·MIT license· Read-only. Addresses you type go to a public explorer API, never to a wallet.