getBalance

suspend fun getBalance(owner: SuiAddress, coinType: String = "0x2::sui::SUI"): Balance

Return the total coin balance for one coin type, owned by the address owner.

Return

Balance

Parameters

owner

's Sui address.

coinType

names for the coin. Defaults to "0x2::sui::SUI"