TarifsGitHubTableau de bord

Sui

sui.rpc.v2.LedgerService/ListTransactions50 crédits

Stream transactions in a range (billed once per stream)

Réseau: sui

Paramètres

NomTypeDescription
read_maskgoogle.protobuf.FieldMaskFields of every ExecutedTransaction to return. (facultatif)
start_checkpointuint64First checkpoint of the range, inclusive. Defaults to genesis. (facultatif)
end_checkpointuint64End of the range, exclusive. Defaults to the current indexed ledger tip. (facultatif)
filterTransactionFilterFilter over indexed transaction fields (disjunctive normal form). When omitted all transactions in the range are returned. (facultatif)
optionsQueryOptionsCursor-bounded query options: ascending (default) or descending order, the item limit (capped by the server) and the after / before cursors. To paginate, pass the last Watermark.cursor of the stream as after (ascending) or before (descending). (facultatif)
start_transaction_indexuint64Inclusive position of the first transaction within start_checkpoint. Requires start_checkpoint. Ignored by servers that predate this field. (facultatif)
end_transaction_indexuint64Exclusive position within the last checkpoint of the range (end_checkpoint - 1). Requires end_checkpoint. Unset means the whole checkpoint. (facultatif)

Valeur renvoyée

Type

stream ListTransactionsResponse

Server stream. Each message holds a transaction (ExecutedTransaction), a watermark and, on the final message, end with the reason the stream ended.

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' \
  -d '{
  "read_mask": "digest,checkpoint",
  "start_checkpoint": 100000000,
  "end_checkpoint": 100000002
}' \
  grpc-holy-burned-sky-sui-mainnet.rpcnode.dev:443 \
  sui.rpc.v2.LedgerService/ListTransactions