Interface defining the structure of a coin in the Sui ecosystem
const suiCoin: Coin = { name: "SUI", type: "0x2::sui::SUI", icon: "https://coinmeta.polymedia.app/img/coins/0x0000000000000000000000000000000000000000000000000000000000000002-sui-SUI.svg", expo: 9}; Copy
const suiCoin: Coin = { name: "SUI", type: "0x2::sui::SUI", icon: "https://coinmeta.polymedia.app/img/coins/0x0000000000000000000000000000000000000000000000000000000000000002-sui-SUI.svg", expo: 9};
Decimal places for the coin (e.g., 9 for SUI means 1 SUI = 10^9 base units)
URL to the coin's icon image
Display name of the coin
Unique identifier of the coin on the Sui blockchain
Interface defining the structure of a coin in the Sui ecosystem
Example