TarifsGitHubTableau de bord

Sui

sui.rpc.v2.LedgerService/GetObject20 crédits

Return an object by ID

Réseau: sui

Paramètres

NomTypeDescription
object_idstringID of the object to fetch.
versionuint64Specific object version. When omitted the latest version of a live object is returned. (facultatif)
read_maskgoogle.protobuf.FieldMaskFields of the Object to return. Defaults to object_id,version,digest. (facultatif)

Valeur renvoyée

Type

GetObjectResponse

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

Exemples de code

# 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