ドキュメント
料金GitHubダッシュボード

Sui

sui.rpc.v2.LedgerService/GetObject20クレジット

Return an object by ID

ネットワーク: sui

パラメータ

名前型説明
object_idstringID of the object to fetch.
versionuint64Specific object version. When omitted the latest version of a live object is returned. (任意)
read_maskgoogle.protobuf.FieldMaskFields of the Object to return. Defaults to object_id,version,digest. (任意)

戻り値

型

GetObjectResponse

object: the requested Object with the fields selected by read_mask.

コード例

# 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 '{
  "object_id": "0x6",
  "read_mask": "object_id,version,digest,object_type,owner"
}' \
  grpc-holy-burned-sky-sui-mainnet.rpcnode.dev:443 \
  sui.rpc.v2.LedgerService/GetObject