MovePackage
A MovePackage is a kind of Move object that represents code that has been published on chain. It exposes information about its modules, type definitions, functions, and dependencies.
type MovePackage implements IObject, IOwner {
address: SuiAddress!
objects(
first: Int
after: String
last: Int
before: String
filter: ObjectFilter
): MoveObjectConnection!
balance(
type: String
): Balance
balances(
first: Int
after: String
last: Int
before: String
): BalanceConnection!
coins(
first: Int
after: String
last: Int
before: String
type: String
): CoinConnection!
stakedSuis(
first: Int
after: String
last: Int
before: String
): StakedSuiConnection!
defaultSuinsName(
format: DomainFormat
): String
suinsRegistrations(
first: Int
after: String
last: Int
before: String
): SuinsRegistrationConnection!
version: UInt53!
status: ObjectKind!
digest: String
owner: ObjectOwner
previousTransactionBlock: TransactionBlock
storageRebate: BigInt
receivedTransactionBlocks(
first: Int
after: String
last: Int
before: String
filter: TransactionBlockFilter
scanLimit: Int
): TransactionBlockConnection!
bcs: Base64
packageAtVersion(
version: Int!
): MovePackage
packageVersions(
first: Int
after: String
last: Int
before: String
filter: MovePackageVersionFilter
): MovePackageConnection!
latestPackage: MovePackage!
module(
name: String!
): MoveModule
modules(
first: Int
after: String
last: Int
before: String
): MoveModuleConnection
linkage: [Linkage!]
typeOrigins: [TypeOrigin!]
packageBcs: Base64
moduleBcs: Base64
}
Fields
MovePackage.address
● SuiAddress!
non-null scalar
MovePackage.objects
● MoveObjectConnection!
non-null object
Objects owned by this package, optionally filter
-ed.
Note that objects owned by a package are inaccessible, because packages are immutable and cannot be owned by an address.
MovePackage.objects.first
● Int
scalar
MovePackage.objects.after
● String
scalar
MovePackage.objects.last
● Int
scalar
MovePackage.objects.before
● String
scalar
MovePackage.objects.filter
● ObjectFilter
input
MovePackage.balance
● Balance
object
Total balance of all coins with marker type owned by this package. If type is not supplied,
it defaults to 0x2::sui::SUI
.
Note that coins owned by a package are inaccessible, because packages are immutable and cannot be owned by an address.
MovePackage.balance.type
● String
scalar
MovePackage.balances
● BalanceConnection!
non-null object
The balances of all coin types owned by this package.
Note that coins owned by a package are inaccessible, because packages are immutable and cannot be owned by an address.
MovePackage.balances.first
● Int
scalar
MovePackage.balances.after
● String
scalar
MovePackage.balances.last
● Int
scalar
MovePackage.balances.before
● String
scalar
MovePackage.coins
● CoinConnection!
non-null object
The coin objects owned by this package.
type
is a filter on the coin's type parameter, defaulting to 0x2::sui::SUI
.
Note that coins owned by a package are inaccessible, because packages are immutable and cannot be owned by an address.
MovePackage.coins.first
● Int
scalar
MovePackage.coins.after
● String
scalar
MovePackage.coins.last
● Int
scalar
MovePackage.coins.before
● String
scalar
MovePackage.coins.type
● String
scalar
MovePackage.stakedSuis
● StakedSuiConnection!
non-null object
The 0x3::staking_pool::StakedSui
objects owned by this package.
Note that objects owned by a package are inaccessible, because packages are immutable and cannot be owned by an address.
MovePackage.stakedSuis.first
● Int
scalar
MovePackage.stakedSuis.after
● String
scalar
MovePackage.stakedSuis.last
● Int
scalar
MovePackage.stakedSuis.before
● String
scalar
MovePackage.defaultSuinsName
● String
scalar
The domain explicitly configured as the default domain pointing to this object.