Sui
sui.rpc.v2.MovePackageService/GetFunction20クレジット
Return a Move function
パラメータ
| 名前 | 型 | 説明 |
|---|---|---|
| package_id | string | ID of the package. |
| module_name | string | Name of the module. |
| name | string | Name of the function. |
戻り値
型
GetFunctionResponse
function: the FunctionDescriptor of the function.
コード例
# 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": "value"
}' \
grpc-holy-burned-sky-sui-mainnet.rpcnode.dev:443 \
sui.rpc.v2.MovePackageService/GetFunction