TokenOnNetwork class

Constructors

TokenOnNetwork({required String identifier, required String balance, required int nonce, required Map<String, dynamic> raw})
Creates TokenOnNetwork.
const
TokenOnNetwork.fromJson(Map<String, dynamic> json)
Creates TokenOnNetwork from JSON (API response).
factory

Properties

accounts int?
Number of accounts holding this token.
no setter
accountsLastUpdatedAt int?
Last updated timestamp for accounts count.
no setter
assets Map<String, dynamic>?
Token logo/asset URLs.
no setter
attributes String?
Token attributes.
no setter
balance String
Balance in atomic units.
final
balanceAsBigInt BigInt
Balance as BigInt.
no setter
burnt String?
Total burnt supply.
no setter
canAddSpecialRoles bool
Whether token can add special roles.
no setter
canBurn bool
Whether token can be burned.
no setter
canChangeOwner bool
Whether token ownership can be changed.
no setter
canFreeze bool
Whether token can be frozen.
no setter
canMint bool
Whether token can be minted.
no setter
canPause bool
Whether token can be paused.
no setter
canTransfer bool?
Whether token can be transferred (for some restricted tokens).
no setter
canTransferNftCreateRole bool
Whether NFT create role can be transferred.
no setter
canUpgrade bool
Whether token can be upgraded.
no setter
canWipe bool
Whether token can be wiped.
no setter
circulatingSupply String?
Circulating supply.
no setter
collection String?
Collection identifier.
no setter
collectionIdentifier String
Collection identifier (without nonce).
no setter
createdAt DateTime?
Creation instant of the token, normalised to UTC.
no setter
decimals int
Number of decimals.
no setter
denominatedBalance double
Denominated balance.
no setter
denominatedBalanceString String
Denominated balance as string with full precision.
no setter
description String?
Token description from assets.
no setter
displayName String
Display name with ticker.
no setter
displayString String
Display string with balance and ticker.
no setter
extraTokens List?
Extra tokens associated with this token from assets.
no setter
fullIdentifier String
Full token identifier including nonce.
no setter
hashCode int
The hash code for this object.
no setteroverride
holderCount int?
NFT holder count.
no setter
identifier String
Token identifier.
final
initialMinted String?
Initial minted supply.
no setter
isDynamicNft bool
Whether this is a Dynamic NFT (any dynamic variant).
no setter
isFungible bool
Whether this is fungible token.
no setter
isLowLiquidity bool?
Whether token has low liquidity.
no setter
isMetaEsdt bool
Whether this is Meta-ESDT.
no setter
isNft bool
Whether this is NFT.
no setter
isNftLike bool
Whether token has NFT properties.
no setter
isNftV2 bool
Whether this is NFT v2.
no setter
isPaused bool
Whether token is paused.
no setter
isSemiFungible bool
Whether this is semi-fungible token.
no setter
isVerified bool?
Is verified collection.
no setter
isWhitelistedStorage bool?
Is whitelisted storage.
no setter
ledgerSignature String?
Ledger signature for hardware wallet support.
no setter
lockedAccounts Map<String, dynamic>?
Locked accounts information from assets.
no setter
logoUrl String?
Best available logo URL.
no setter
lowLiquidityThresholdPercent double?
Low liquidity threshold percentage.
no setter
marketCap double?
Token market cap in USD.
no setter
media List?
Media array for NFT.
no setter
metadata Map<String, dynamic>?
Metadata for NFT.
no setter
mexPairType String?
MEX pair type (experimental, core, etc.).
no setter
minted String?
Total minted supply.
no setter
name String?
Token name.
no setter
nftCount int?
NFT count in collection.
no setter
nftCreateStopped bool
Whether NFT creation is stopped.
no setter
nonce int
Nonce for NFTs/SFTs (0 for fungible).
final
owner String?
Token owner/creator address.
no setter
ownersHistory List?
Token owners history.
no setter
pngUrl String?
PNG logo URL.
no setter
preferredRankAlgorithm String?
Preferred rank algorithm for NFTs.
no setter
price double?
Token price in USD.
no setter
priceSource Map<String, dynamic>?
Price source information from assets.
no setter
rank int?
NFT rank for rarity.
no setter
rarityScore double?
NFT rarity score.
no setter
raw Map<String, dynamic>
Raw API response.
final
roles List?
Token roles.
no setter
royalties int?
Royalties percentage for NFTs/SFTs.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scamInfo Map<String, dynamic>?
Scam information if token is flagged.
no setter
social Map<String, dynamic>?
Token social links from assets.
no setter
status String?
Token status from assets (active, inactive).
no setter
subType String?
Token sub-type (e.g., for NFTs: NonFungibleESDTv2, DynamicNonFungibleESDT).
no setter
supply String?
Token supply.
no setter
svgUrl String?
SVG logo URL.
no setter
tags List?
Tags associated with token.
no setter
thumbnailUrl String?
Thumbnail URL for NFT.
no setter
ticker String?
Token ticker/symbol.
no setter
timestamp int?
Timestamp in seconds when the token was created, if reported.
no setter
timestampMs int?
Timestamp in milliseconds when the token was created, if reported.
no setter
totalLiquidity double?
Total liquidity in DEX.
no setter
totalVolume24h double?
Total 24h trading volume.
no setter
tradesCount int?
Number of trades.
no setter
transactions int?
Number of transactions for this token.
no setter
transactionsLastUpdatedAt int?
Last updated timestamp for transactions count.
no setter
transfers int?
Number of transfers for this token.
no setter
transfersLastUpdatedAt int?
Last updated timestamp for transfers count.
no setter
type String?
Token type.
no setter
uris List<String>?
Token URIs.
no setter
url String?
URL for NFT media.
no setter
valueEgld double?
Value in EGLD.
no setter
valueUsd double?
Value in USD (balance * price).
no setter
website String?
Token website from assets.
no setter

Methods

formatBalance({int decimalPlaces = 2}) String
Formats balance with decimals.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Converts to JSON.
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
override