Skip to main content

CoinMetadata

An object representing metadata about a coin type.

type CoinMetadata implements IAddressable, IMoveObject, IObject {
address: SuiAddress!
balance(
coinType: String!
): Balance
balances(
first: Int
after: String
last: Int
before: String
): BalanceConnection
contents: MoveValue
decimals: Int
defaultSuinsName: String
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
storageRebate: BigInt
supply: BigInt
symbol: String
version: UInt53
}

Fields

CoinMetadata.address ● SuiAddress! non-null scalar

The CoinMetadata's ID.

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.defaultSuinsName ● String scalar

The domain explicitly configured as the default SuiNS name for this address.

CoinMetadata.description ● String scalar

Description of the coin.

CoinMetadata.digest ● String scalar

32-byte hash that identifies the object's contents, encoded in Base58.

CoinMetadata.dynamicField ● DynamicField object

Access a dynamic field on an object using its type and BCS-encoded name.

CoinMetadata.dynamicField.name ● DynamicFieldName! non-null input

CoinMetadata.dynamicFields ● DynamicFieldConnection object

Dynamic fields owned by this object.

Dynamic fields on wrapped objects can be accessed using Address.dynamicFields.

CoinMetadata.dynamicFields.first ● Int scalar
CoinMetadata.dynamicFields.after ● String scalar
CoinMetadata.dynamicFields.last ● Int scalar
CoinMetadata.dynamicFields.before ● String scalar

CoinMetadata.dynamicObjectField ● DynamicField object

Access a dynamic object field on an object using its type and BCS-encoded name.

CoinMetadata.dynamicObjectField.name ● DynamicFieldName! non-null input

CoinMetadata.hasPublicTransfer ● Boolean scalar

Whether this object can be transfered using the TransferObjects Programmable Transaction Command or sui::transfer::public_transfer.

Both these operations require the object to have both the key and store abilities.

CoinMetadata.iconUrl ● String scalar

URL for the coin logo.

CoinMetadata.moveObjectBcs ● Base64 scalar

The Base64-encoded BCS serialize of this object, as a MoveObject.

CoinMetadata.multiGetBalances ● [Balance!] list object

Fetch the total balances keyed by coin types (e.g. 0x2::sui::SUI) owned by this address.

If the address does not own any coins of a given type, a balance of zero is returned for that type.

CoinMetadata.multiGetBalances.keys ● [String!]! non-null scalar

CoinMetadata.multiGetDynamicFields ● [DynamicField]! non-null object

Access dynamic fields on an object using their types and BCS-encoded names.

Returns a list of dynamic fields that is guaranteed to be the same length as keys. If a dynamic field in keys could not be found in the store, its corresponding entry in the result will be null.

CoinMetadata.multiGetDynamicFields.keys ● [DynamicFieldName!]! non-null input

CoinMetadata.multiGetDynamicObjectFields ● [DynamicField]! non-null object

Access dynamic object fields on an object using their types and BCS-encoded names.

Returns a list of dynamic object fields that is guaranteed to be the same length as keys. If a dynamic object field in keys could not be found in the store, its corresponding entry in the result will be null.

CoinMetadata.multiGetDynamicObjectFields.keys ● [DynamicFieldName!]! non-null input

CoinMetadata.name ● String scalar

Name for the coin.

CoinMetadata.objectAt ● Object object

Fetch the object with the same ID, at a different version, root version bound, or checkpoint.

CoinMetadata.objectAt.version ● UInt53 scalar
CoinMetadata.objectAt.rootVersion ● UInt53 scalar
CoinMetadata.objectAt.checkpoint ● UInt53 scalar

CoinMetadata.objectBcs ● Base64 scalar

The Base64-encoded BCS serialization of this object, as an Object.

CoinMetadata.objectVersionsAfter ● ObjectConnection object

Paginate all versions of this object after this one.

CoinMetadata.objectVersionsAfter.first ● Int scalar
CoinMetadata.objectVersionsAfter.after ● String scalar
CoinMetadata.objectVersionsAfter.last ● Int scalar
CoinMetadata.objectVersionsAfter.before ● String scalar
CoinMetadata.objectVersionsAfter.filter ● VersionFilter input

CoinMetadata.objectVersionsBefore ● ObjectConnection object

Paginate all versions of this object before this one.

CoinMetadata.objectVersionsBefore.first ● Int scalar
CoinMetadata.objectVersionsBefore.after ● String scalar
CoinMetadata.objectVersionsBefore.last ● Int scalar
CoinMetadata.objectVersionsBefore.before ● String scalar
CoinMetadata.objectVersionsBefore.filter ● VersionFilter input

CoinMetadata.objects ● MoveObjectConnection object

Objects owned by this object, optionally filtered by type.

CoinMetadata.objects.first ● Int scalar
CoinMetadata.objects.after ● String scalar
CoinMetadata.objects.last ● Int scalar
CoinMetadata.objects.before ● String scalar
CoinMetadata.objects.filter ● ObjectFilter input

CoinMetadata.owner ● Owner union

The object's owner kind.

CoinMetadata.previousTransaction ● Transaction object

The transaction that created this version of the object.

CoinMetadata.storageRebate ● BigInt scalar

The SUI returned to the sponsor or sender of the transaction that modifies or deletes this object.

CoinMetadata.supply ● BigInt scalar

The overall balance of coins issued.

CoinMetadata.symbol ● String scalar

Symbol for the coin.

CoinMetadata.version ● UInt53 scalar

The version of this object that this content comes from.

Interfaces

IAddressable interface

Interface implemented by GraphQL types representing entities that are identified by an address.

An address uniquely represents either the public key of an account, or an object's ID, but never both. It is not possible to determine which type an address represents up-front. If an object is wrapped, its contents will not be accessible via its address, but it will still be possible to access other objects it owns.

IMoveObject interface

Interface implemented by types that represent a Move object on-chain (A Move value whose type has key).

IObject interface

Interface implemented by versioned on-chain values that are addressable by an ID (also referred to as its address). This includes Move objects and packages.

Returned By

coinMetadata query

Member Of

MoveObject object