GetPackage - Query Move Package Details
Retrieve comprehensive Move package information via gRPC including modules, functions, and datatypes. Essential for smart contract exploration with Dwellir.
Sui RPC endpoint: endpoint URLs, plans and pricing.
Retrieve comprehensive Move package information via gRPC including modules, functions, and datatypes. Essential for smart contract exploration with Dwellir.
Method Signature
- Service:
sui.rpc.v2.MovePackageService - Method:
GetPackage - Type: Unary RPC
grpcurl \
-H "x-api-key: YOUR_API_KEY" \
-d '{
"package_id": "0x2"
}' \
api-sui-mainnet-full.n.dwellir.com:443 \
sui.rpc.v2.MovePackageService/GetPackageUsage notes
Choose at most one selector: version or at_checkpoint. Without either selector, the exact package at package_id is returned. This method has no read mask.
Related resources
Framework package versions
Framework packages such as 0x2 can reuse one storage ID across multiple versions. On sui-node/1.82.3, an older version selector can return the current package at that ID.
Compare package.version with the requested version before treating the result as historical bytecode. Omitting both selectors still returns the exact package currently stored at package_id.
GetFunction
Retrieve detailed Move function information via gRPC including parameters, return types, and visibility. Essential for smart contract integration with Dwellir.
ListPackageVersions
List every published version in a Sui Move package upgrade lineage with cursor-based pagination over Dwellir gRPC.