Sui
sui.rpc.v2.LedgerService/ListEvents50 크레딧
Stream events in a range (billed once per stream)
매개변수
| 이름 | 타입 | 설명 |
|---|---|---|
| read_mask | google.protobuf.FieldMask | Fields of every Event to return. (선택) |
| start_checkpoint | uint64 | First checkpoint of the range, inclusive. Defaults to genesis. (선택) |
| end_checkpoint | uint64 | End of the range, exclusive. Defaults to the current indexed ledger tip. (선택) |
| filter | EventFilter | Filter over indexed event fields (disjunctive normal form). When omitted all events in the range are returned. (선택) |
| options | QueryOptions | Cursor-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). (선택) |
| start_transaction_index | uint64 | Inclusive position of the first transaction within start_checkpoint. Requires start_checkpoint. (선택) |
| start_event_index | uint32 | Inclusive position of the first event within the transaction at start_transaction_index. Requires start_transaction_index. (선택) |
| end_transaction_index | uint64 | Exclusive position within the last checkpoint of the range. Requires end_checkpoint. (선택) |
| end_event_index | uint32 | Exclusive event position within the transaction at end_transaction_index. Requires end_transaction_index. (선택) |
반환값
타입
stream ListEventsResponse
Server stream. Each message holds an event, a watermark and, on the final message, end with the reason the stream ended.
코드 예제
# 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 '{
"start_checkpoint": 100000000,
"end_checkpoint": 100000002
}' \
grpc-holy-burned-sky-sui-mainnet.rpcnode.dev:443 \
sui.rpc.v2.LedgerService/ListEvents