Skip to main content
⚠️ This is the beta version of the Sui GraphQL schema. The beta schema will replace the alpha GraphQL schema upon its official release.

multiGetPackages

Fetch packages by their keys.

Returns a list of packages that is guaranteed to be the same length as keys. If a package in keys could not be found in the store, its corresponding entry in the result will be null. This could be because that address never pointed to a package, or because the package was pruned.

multiGetPackages(
keys: [PackageKey!]!
): [MovePackage]!

Arguments

multiGetPackages.keys ● [PackageKey!]! non-null input

Type

MovePackage object

A MovePackage is a kind of Object that represents code that has been published on-chain. It exposes information about its modules, type definitions, functions, and dependencies.