Home

Subscribe transactions

POST
https://sui-grpc.nownodes.io/sui.rpc.v2.SubscriptionService/SubscribeTransactions

Authorizations

ApiKeyAuthApiKeyAuth

api-key string

NOWNodes API key passed in the api-key header.

Subscribe to the stream of transactions.

The stream begins at the latest executed checkpoint as seen by the server and yields transactions matching the filter as they are executed.

gRPC method: sui.rpc.v2.SubscriptionService.SubscribeTransactions (server-streaming).

This is a gRPC method (HTTP/2, Protocol Buffers), not a REST endpoint. The request and response bodies below are shown in the proto3 JSON form that tools such as grpcurl and Postman accept and print. Pass your NOWNodes API key as the api-key gRPC metadata header. Proto files: sui/rpc/v2/subscription_service.proto.

This method is server-streaming: the server keeps the call open and sends a sequence of response messages; each message has the response schema below.

Example grpcurl request:

Copied!
grpcurl \
  -insecure \
  -H 'api-key: YOUR_API_KEY' \
  -emit-defaults \
  -proto './sui-apis-grpc/proto/sui/rpc/v2/subscription_service.proto' \
  -import-path './sui-apis-grpc/proto' \
  -d '{}' \
  'sui-grpc.nownodes.io' \
  sui.rpc.v2.SubscriptionService.SubscribeTransactions

Body

application/json

Request message for SubscriptionService.SubscribeTransactions.

readMaskobject

Optional. Mask for specifying which parts of the ExecutedTransaction should be returned. Read mask: list of field paths to return, in snake_case (e.g. "object_id", "version", "digest"). Nested fields use dots (e.g. "effects.status").

Show child attributes
pathsArray<string>required

Field paths to return.

filterTransactionFilter

Optional. DNF filter over indexed dimensions. If absent, every transaction is streamed.

Response

200OK

Stream of response messages.

default

gRPC error. The status code (e.g. UNAUTHENTICATED, INVALID_ARGUMENT, NOT_FOUND) is returned in the grpc-status trailer, details in grpc-message.