Sui
sui.rpc.v2.LedgerService/GetObject20 créditos
Return an object by ID
Parâmetros
| Nome | Tipo | Descrição |
|---|---|---|
| object_id | string | ID of the object to fetch. |
| version | uint64 | Specific object version. When omitted the latest version of a live object is returned. (opcional) |
| read_mask | google.protobuf.FieldMask | Fields of the Object to return. Defaults to object_id,version,digest. (opcional) |
Retorno
Tipo
GetObjectResponse
object: the requested Object with the fields selected by read_mask.
Exemplos de código
# 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