요금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