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: IotaAddress!
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!
stakedIotas(
first: Int
after: String
last: Int
before: String
): StakedIotaConnection!
iotaNamesDefaultName(
format: DomainFormat
): String
iotaNamesRegistrations(
first: Int
after: String
last: Int
before: String
): IotaNamesRegistrationConnection!
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!]
moduleBcs: Base64
}
Fields
MovePackage.address
● IotaAddress!
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::iota::IOTA
.
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::iota::IOTA
.
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.stakedIotas
● StakedIotaConnection!
non-null object
The 0x3::staking_pool::StakedIota
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.stakedIotas.first
● Int
scalar
MovePackage.stakedIotas.after
● String
scalar
MovePackage.stakedIotas.last
● Int
scalar
MovePackage.stakedIotas.before
● String
scalar
MovePackage.iotaNamesDefaultName
● String
scalar
The domain explicitly configured as the default domain pointing to this object.
MovePackage.iotaNamesDefaultName.format
● DomainFormat
enum
MovePackage.iotaNamesRegistrations
● IotaNamesRegistrationConnection!
non-null object
The IotaNamesRegistration NFTs owned by this package. These grant the owner the capability to manage the associated domain.
Note that objects owned by a package are inaccessible, because packages are immutable and cannot be owned by an address.
MovePackage.iotaNamesRegistrations.first
● Int
scalar
MovePackage.iotaNamesRegistrations.after
● String
scalar
MovePackage.iotaNamesRegistrations.last
● Int
scalar
MovePackage.iotaNamesRegistrations.before
● String
scalar
MovePackage.version
● UInt53!
non-null scalar
MovePackage.status
● ObjectKind!
non-null enum
The current status of the object as read from the off-chain store. The possible states are: NOT_INDEXED, the object is loaded from serialized data, such as the contents of a genesis or system package upgrade transaction. LIVE, the version returned is the most recent for the object, and it is not deleted or wrapped at that version. HISTORICAL, the object was referenced at a specific version or checkpoint, so is fetched from historical tables and may not be the latest version of the object. WRAPPED_OR_DELETED, the object is deleted or wrapped and only partial information can be loaded."
MovePackage.digest
● String
scalar
32-byte hash that identifies the package's contents, encoded as a Base58 string.
MovePackage.owner
● ObjectOwner
union
The owner type of this object: Immutable, Shared, Parent, Address Packages are always Immutable.