요금GitHub대시보드

Sui

sui.rpc.v2.MovePackageService/GetDatatype20 크레딧

Return a Move struct or enum

네트워크: sui

매개변수

이름타입설명
package_idstringID of the package.
module_namestringName of the module.
namestringName of the struct or enum.

반환값

타입

GetDatatypeResponse

datatype: the DatatypeDescriptor of the struct or enum.

코드 예제

# the key of the endpoint goes in the x-token header; add -proto <file> when the node has no gRPC reflection
grpcurl \
  -H 'x-token: 7c9e6679-7425-40de-944b-e07fc1f90ae7' \
  -d '{
  "package_id": "0x0000000000000000000000000000000000000000000000000000000000000002",
  "module_name": "coin",
  "name": "Coin"
}' \
  grpc-holy-burned-sky-sui-mainnet.rpcnode.dev:443 \
  sui.rpc.v2.MovePackageService/GetDatatype