getBalance

open suspend override fun getBalance(address: AccountAddress, type: String?): Option<Balance>

Get the balance of an address for a specific coin type

If the type is not provided, the default coin type of 0x2::sui::SUI will be used

Return

An Option of nullable Balance

Parameters

address

The address to get the balance for