Coin

interface Coin

Coin interface

This interface represents the coin API

Inheritors

Functions

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

Get all balances for an address

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

Get the balance of an address for a specific coin type

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

Get the metadata for a coin

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

Get coins for an address

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

Get the total supply of a coin