Skip to main content
getAddressInfo tells you whether an address on BOT Chain is a contract, whether it’s verified on BOTScan, and, for tokens, the symbol and decimals.
Early release. This is published in @uzolabs/sdk 0.2.0 on npm and you can use it today. The API may change before 1.0, so pin the version.

Usage

address-info.ts
Output from a run on testnet on 2026-10-02. The first address is USDT, the second is a wallet:
Output

Parameters

Address
required
A 0x-prefixed, 20-byte hex address. Any letter case is accepted. The client checksums it before calling BOTScan. Anything else throws InvalidAddressError without making a request.

Returns

Promise<AddressInfo>
boolean
required
true if the address has contract code.
boolean
required
true if the contract’s source is verified on BOTScan. Always false for wallets.
string | null
required
The contract or token name BOTScan shows, or null if it has none.
{ symbol: string; decimals: number }
Present only when BOTScan recognizes the address as a token with a symbol and whole-number decimals.
An address BOTScan has never seen doesn’t throw. It returns { isContract: false, isVerified: false, name: null }, the same as an unused wallet.

Errors

Common use: check a token before using it

check-token.ts
Output
BOTScan’s data is a convenience, not a guarantee. For anything that moves funds, also read decimals() from the contract itself.

getContract

Fetch the verified ABI.

Errors

Every error class.
Last modified on October 2, 2026