CoinMetadata
An object representing metadata about a coin type.
type CoinMetadata implements IAddressable, IMoveObject, IObject {
address: SuiAddress!
addressAt(
rootVersion: UInt53
checkpoint: UInt53
): Address
allowGlobalPause: Boolean
balance(
coinType: String!
): Balance
balances(
first: Int
after: String
last: Int
before: String
): BalanceConnection
contents: MoveValue
decimals: Int
defaultNameRecord: NameRecord
denyCap: MoveObject
description: String
digest: String
dynamicField(
name: DynamicFieldName!
): DynamicField
dynamicFields(
first: Int
after: String
last: Int
before: String
): DynamicFieldConnection
dynamicObjectField(
name: DynamicFieldName!
): DynamicField
hasPublicTransfer: Boolean
iconUrl: String
moveObjectBcs: Base64
multiGetBalances(
keys: [String!]!
): [Balance!]
multiGetDynamicFields(
keys: [DynamicFieldName!]!
): [DynamicField]!
multiGetDynamicObjectFields(
keys: [DynamicFieldName!]!
): [DynamicField]!
name: String
objectAt(
version: UInt53
rootVersion: UInt53
checkpoint: UInt53
): Object
objectBcs: Base64
objectVersionsAfter(
first: Int
after: String
last: Int
before: String
filter: VersionFilter
): ObjectConnection
objectVersionsBefore(
first: Int
after: String
last: Int
before: String
filter: VersionFilter
): ObjectConnection
objects(
first: Int
after: String
last: Int
before: String
filter: ObjectFilter
): MoveObjectConnection
owner: Owner
previousTransaction: Transaction
receivedTransactions(
first: Int
after: String
last: Int
before: String
filter: TransactionFilter
): TransactionConnection
regulatedState: RegulatedState
storageRebate: BigInt
supply: BigInt
supplyState: SupplyState
symbol: String
version: UInt53
}
Fields
CoinMetadata.address ● SuiAddress! non-null scalar
The CoinMetadata's ID.
CoinMetadata.addressAt ● Address object
Fetch the address as it was at a different root version, or checkpoint.
If no additional bound is provided, the address is fetched at the latest checkpoint known to the RPC.
CoinMetadata.addressAt.rootVersion ● UInt53 scalar
CoinMetadata.addressAt.checkpoint ● UInt53 scalar
CoinMetadata.allowGlobalPause ● Boolean scalar
Whether the DenyCap can be used to enable a global pause that behaves as if all addresses were added to the deny list. null indicates that it is not known whether the currency can be paused or not. This field is only populated on currencies held in the Coin Registry. To determine whether a legacy currency can be paused, check the contents of its DenyCap, if it can be found.
CoinMetadata.balance ● Balance object
Fetch the total balance for coins with marker type coinType (e.g. 0x2::sui::SUI), owned by this address.
If the address does not own any coins of that type, a balance of zero is returned.
CoinMetadata.balance.coinType ● String! non-null scalar
CoinMetadata.balances ● BalanceConnection object
Total balance across coins owned by this address, grouped by coin type.
CoinMetadata.balances.first ● Int scalar
CoinMetadata.balances.after ● String scalar
CoinMetadata.balances.last ● Int scalar
CoinMetadata.balances.before ● String scalar
CoinMetadata.contents ● MoveValue object
The structured representation of the object's contents.
CoinMetadata.decimals ● Int scalar
Number of decimal places the coin uses.
CoinMetadata.defaultNameRecord ● NameRecord object
The domain explicitly configured as the default Name Service name for this address.