GetDatatype - Query Move Struct Definitions
Retrieve Move struct and datatype definitions via gRPC including fields and type parameters. Essential for understanding smart contract data structures with Dwellir.
Sui RPC endpoint: endpoint URLs, plans and pricing.
Retrieve Move struct and datatype definitions via gRPC including fields and type parameters. Essential for understanding smart contract data structures with Dwellir.
Method Signature
- Service:
sui.rpc.v2.MovePackageService - Method:
GetDatatype - Type: Unary RPC
grpcurl \
-H "x-api-key: YOUR_API_KEY" \
-d '{
"package_id": "0x2",
"module_name": "coin",
"name": "Coin"
}' \
api-sui-mainnet-full.n.dwellir.com:443 \
sui.rpc.v2.MovePackageService/GetDatatypeUsage notes
The request field is name, not datatype_name. The response wraps the descriptor in datatype.
Related resources
ListEvents
Stream filtered historical Sui events over gRPC with checkpoint ranges, event filters, field masks, and cursor pagination.
GetFunction
Retrieve detailed Move function information via gRPC including parameters, return types, and visibility. Essential for smart contract integration with Dwellir.