FiyatlandırmaGitHubKontrol paneli

Sui

sui.rpc.v2.LedgerService/GetObject20 kredi

Return an object by ID

Ağ: sui

Parametreler

AdTürAçıklama
object_idstringID of the object to fetch.
versionuint64Specific object version. When omitted the latest version of a live object is returned. (isteğe bağlı)
read_maskgoogle.protobuf.FieldMaskFields of the Object to return. Defaults to object_id,version,digest. (isteğe bağlı)

Dönüş değeri

Tür

GetObjectResponse

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

Kod örnekleri

# 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