MoveObject
A MoveObject is a kind of Object that reprsents data stored on-chain.
type MoveObject implements IAddressable, IMoveObject, IObject {
  address: SuiAddress!
  asCoinMetadata: CoinMetadata
  asDynamicField: DynamicField
  balance(
    coinType: String!
  ): Balance
  balances(
    first: Int
    after: String
    last: Int
    before: String
  ): BalanceConnection
  contents: MoveValue
  defaultSuinsName: String
  digest: String
  dynamicField(
    name: DynamicFieldName!
  ): DynamicField
  dynamicFields(
    first: Int
    after: String
    last: Int
    before: String
  ): DynamicFieldConnection
  dynamicObjectField(
    name: DynamicFieldName!
  ): DynamicField
  hasPublicTransfer: Boolean
  moveObjectBcs: Base64
  multiGetBalances(
    keys: [String!]!
  ): [Balance!]
  multiGetDynamicFields(
    keys: [DynamicFieldName!]!
  ): [DynamicField]!
  multiGetDynamicObjectFields(
    keys: [DynamicFieldName!]!
  ): [DynamicField]!
  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
  storageRebate: BigInt
  version: UInt53
}
Fields
MoveObject.address ● SuiAddress! non-null scalar
The MoveObject's ID.
MoveObject.asCoinMetadata ● CoinMetadata object
Attempts to convert the object into a CoinMetadata.
MoveObject.asDynamicField ● DynamicField object
Attempts to convert the object into a DynamicField.
MoveObject.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.
MoveObject.balance.coinType ● String! non-null scalar
MoveObject.balances ● BalanceConnection object
Total balance across coins owned by this address, grouped by coin type.
MoveObject.balances.first ● Int scalar
MoveObject.balances.after ● String scalar
MoveObject.balances.last ● Int scalar
MoveObject.balances.before ● String scalar
MoveObject.contents ● MoveValue object
The structured representation of the object's contents.
MoveObject.defaultSuinsName ● String scalar
The domain explicitly configured as the default SuiNS name for this address.
MoveObject.digest ● String scalar
32-byte hash that identifies the object's contents, encoded in Base58.
MoveObject.dynamicField ● DynamicField object
Access a dynamic field on an object using its type and BCS-encoded name.
Returns null if a dynamic field with that name could not be found attached to this object.
MoveObject.dynamicField.name ● DynamicFieldName! non-null input
MoveObject.dynamicFields ● DynamicFieldConnection object
Dynamic fields owned by this object.
Dynamic fields on wrapped objects can be accessed using Address.dynamicFields.
MoveObject.dynamicFields.first ● Int scalar
MoveObject.dynamicFields.after ● String scalar
MoveObject.dynamicFields.last ● Int scalar
MoveObject.dynamicFields.before ● String scalar
MoveObject.dynamicObjectField ● DynamicField object
Access a dynamic object field on an object using its type and BCS-encoded name.
Returns null if a dynamic object field with that name could not be found attached to this object.
MoveObject.dynamicObjectField.name ● DynamicFieldName! non-null input
MoveObject.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.
MoveObject.moveObjectBcs ● Base64 scalar
The Base64-encoded BCS serialize of this object, as a MoveObject.
MoveObject.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.
MoveObject.multiGetBalances.keys ● [String!]! non-null scalar
MoveObject.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.
MoveObject.multiGetDynamicFields.keys ● [DynamicFieldName!]! non-null input
MoveObject.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.
MoveObject.multiGetDynamicObjectFields.keys ● [DynamicFieldName!]! non-null input
MoveObject.objectAt ● Object object
Fetch the object with the same ID, at a different version, root version bound, or checkpoint.
If no additional bound is provided, the latest version of this object is fetched at the latest checkpoint.
MoveObject.objectAt.version ● UInt53 scalar
MoveObject.objectAt.rootVersion ● UInt53 scalar
MoveObject.objectAt.checkpoint ● UInt53 scalar
MoveObject.objectBcs ● Base64 scalar
The Base64-encoded BCS serialization of this object, as an Object.
MoveObject.objectVersionsAfter ● ObjectConnection object
Paginate all versions of this object after this one.