suix namespace.
Methods
getCoins
Returns allCoin<coin_type> objects owned by an address.
SuiAddress
required
The owner’s Sui address
string
Optional type name for the coin (e.g.,
0x168da5bf1f48dafc111b0a488fa454aca95e0b5e::usdc::USDC). Defaults to 0x2::sui::SUI if not specifiedstring
Optional paging cursor
usize
Maximum number of items per page
CoinPage
Paginated coin results
getAllCoins
Returns all Coin objects owned by an address (all coin types).SuiAddress
required
The owner’s Sui address
string
Optional paging cursor
usize
Maximum number of items per page
CoinPage
Paginated results with all coins of all types
getBalance
Returns the total coin balance for one coin type, owned by the address.SuiAddress
required
The owner’s Sui address
string
Optional type name for the coin (e.g.,
0x168da5bf1f48dafc111b0a488fa454aca95e0b5e::usdc::USDC). Defaults to 0x2::sui::SUI if not specifiedBalance
Balance information
getAllBalances
Returns the total coin balance for all coin types owned by the address.SuiAddress
required
The owner’s Sui address
Balance[]
Array of balance information for each coin type
getCoinMetadata
Returns metadata (symbol, decimals, etc.) for a coin type.If the coin’s metadata was wrapped in the transaction that published its marker type, or the latest version is wrapped or deleted, it will not be found.
string
required
Type name for the coin (e.g.,
0x168da5bf1f48dafc111b0a488fa454aca95e0b5e::usdc::USDC)SuiCoinMetadata
Coin metadata if found
getTotalSupply
Returns the total supply for a coin type.string
required
Type name for the coin (e.g.,
0x168da5bf1f48dafc111b0a488fa454aca95e0b5e::usdc::USDC)Supply
Supply information