Coin

class Coin(val config: SuiConfig) : Coin

Coin implementation

This class represents the coin API

Constructors

Link copied to clipboard
constructor(config: SuiConfig)

Properties

Link copied to clipboard

Functions

Link copied to clipboard
open suspend override fun getAllBalances(address: AccountAddress): Option<Balances>

Get all balances for an address

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

Get the balance of an address for a specific coin type

Link copied to clipboard
open suspend override fun getCoinMetadata(type: String): Option<CoinMetadata>

Get the metadata for a coin

Link copied to clipboard
open suspend override fun getCoins(address: AccountAddress, first: Int?, cursor: String?, type: String?): Option<Coins>

Get coins for an address

Link copied to clipboard
open suspend override fun getTotalSupply(type: String): Option<String>

Get the total supply of a coin