getTotalSupply

abstract suspend fun getTotalSupply(type: String): Result<GetTotalSupplyQuery.Data?, SuiError>

Fetches the total supply for a given coin type.

Return

A Result which is either:

  • Ok: Containing a nullable GetTotalSupplyQuery.Data object with the total supply details.

  • Err: Containing a SuiError object with a list of GraphQLErrors.

Parameters

type

The string representing the coin type (e.g., "0x2::sui::SUI").