Sui
sui.rpc.v2.SubscriptionService/SubscribeEvents100 crédits
Stream new events (billed once per stream)
Paramètres
| Nom | Type | Description |
|---|---|---|
| read_mask | google.protobuf.FieldMask | Fields of every Event to return. (facultatif) |
| filter | EventFilter | Only deliver events matching this filter. When omitted every event is delivered. (facultatif) |
Valeur renvoyée
Type
stream SubscribeEventsResponse
Server stream. event (Event) and watermark.
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' \
grpc-holy-burned-sky-sui-mainnet.rpcnode.dev:443 \
sui.rpc.v2.SubscriptionService/SubscribeEvents