Sui
sui.rpc.v2.SubscriptionService/SubscribeTransactionsКредиты: 100
Stream new transactions (billed once per stream)
Параметры
| Имя | Тип | Описание |
|---|---|---|
| read_mask | google.protobuf.FieldMask | Fields of every ExecutedTransaction to return. (необязательно) |
| filter | TransactionFilter | Only deliver transactions matching this filter. When omitted every transaction is delivered. (необязательно) |
Результат
Тип
stream SubscribeTransactionsResponse
Server stream. transaction (ExecutedTransaction) and watermark.
Примеры кода
# 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 '{
"read_mask": "digest,checkpoint"
}' \
grpc-holy-burned-sky-sui-mainnet.rpcnode.dev:443 \
sui.rpc.v2.SubscriptionService/SubscribeTransactions