Sui
sui.rpc.v2.LedgerService/GetTransactionКредиты: 35
Return an executed transaction by digest
Параметры
| Имя | Тип | Описание |
|---|---|---|
| digest | string | Transaction digest (base58). |
| read_mask | google.protobuf.FieldMask | Fields of the ExecutedTransaction to return. (необязательно) |
Результат
Тип
GetTransactionResponse
transaction: the ExecutedTransaction 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 '{
"digest": "Hay2tj3GcDYcE3AMHrej5WDsHGPVAYsegcubixLUvXUF",
"read_mask": "digest,effects.status,checkpoint"
}' \
grpc-holy-burned-sky-sui-mainnet.rpcnode.dev:443 \
sui.rpc.v2.LedgerService/GetTransaction