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
asTransactionObject(
transactionDigest: String
): TransactionObject
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.asTransactionObject ● TransactionObject union
How this object was referenced by a specific transaction.
Returns null if the object was not referenced, or was present only as a non-object marker variant of unchanged consensus input (e.g. cancelled, stream-ended, per-epoch).
The transactionDigest argument may be omitted when the query is scoped under a transaction context (e.g. a parent Transaction, TransactionEffects, or Event); the field then resolves against the in-scope transaction.
Passing an explicit transactionDigest other than the in-scope transaction in subscription context is not supported; for arbitrary transaction lookups, use the indexed Query API.
CoinMetadata.asTransactionObject.transactionDigest ● String scalar
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.