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
getBlockInfostays unsupported. - 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.