More clarity in actor event API docs
This commit is contained in:
parent
377a3e2157
commit
e86bb270ca
@ -911,13 +911,21 @@ type FullNode interface {
|
|||||||
|
|
||||||
// GetActorEvents returns all FVM and built-in Actor events that match the given filter.
|
// GetActorEvents returns all FVM and built-in Actor events that match the given filter.
|
||||||
// This is a request/response API.
|
// This is a request/response API.
|
||||||
|
// Results available from this API may be limited by the MaxFilterResults and MaxFilterHeightRange
|
||||||
|
// configuration options and also the amount of historical data available in the node.
|
||||||
GetActorEvents(ctx context.Context, filter *types.ActorEventFilter) ([]*types.ActorEvent, error) //perm:read
|
GetActorEvents(ctx context.Context, filter *types.ActorEventFilter) ([]*types.ActorEvent, error) //perm:read
|
||||||
|
|
||||||
// SubscribeActorEvents returns a long-lived stream of all FVM and built-in Actor events that match the given filter.
|
// SubscribeActorEvents returns a long-lived stream of all FVM and built-in Actor events that
|
||||||
// Events that match the given filter are written to the stream in real-time as they are emitted from the FVM.
|
// match the given filter.
|
||||||
// The response stream is closed when the client disconnects or if there is an error while writing an event to the stream.
|
// Events that match the given filter are written to the stream in real-time as they are emitted
|
||||||
// This API also allows clients to read all historical events matching the given filter before
|
// from the FVM.
|
||||||
// any real-time events are written to the response stream.
|
// The response stream is closed when the client disconnects, when a ToHeight is specified and is
|
||||||
|
// reached, or if there is an error while writing an event to the stream.
|
||||||
|
// This API also allows clients to read all historical events matching the given filter before any
|
||||||
|
// real-time events are written to the response stream if the filter specifies an earlier
|
||||||
|
// FromHeight.
|
||||||
|
// Results available from this API may be limited by the MaxFilterResults and MaxFilterHeightRange
|
||||||
|
// configuration options and also the amount of historical data available in the node.
|
||||||
// NOTE: THIS API IS ONLY SUPPORTED OVER WEBSOCKETS FOR NOW
|
// NOTE: THIS API IS ONLY SUPPORTED OVER WEBSOCKETS FOR NOW
|
||||||
SubscribeActorEvents(ctx context.Context, filter *types.ActorEventFilter) (<-chan *types.ActorEvent, error) //perm:read
|
SubscribeActorEvents(ctx context.Context, filter *types.ActorEventFilter) (<-chan *types.ActorEvent, error) //perm:read
|
||||||
}
|
}
|
||||||
|
Binary file not shown.
@ -3392,6 +3392,8 @@ Response:
|
|||||||
### GetActorEvents
|
### GetActorEvents
|
||||||
GetActorEvents returns all FVM and built-in Actor events that match the given filter.
|
GetActorEvents returns all FVM and built-in Actor events that match the given filter.
|
||||||
This is a request/response API.
|
This is a request/response API.
|
||||||
|
Results available from this API may be limited by the MaxFilterResults and MaxFilterHeightRange
|
||||||
|
configuration options and also the amount of historical data available in the node.
|
||||||
|
|
||||||
|
|
||||||
Perms: read
|
Perms: read
|
||||||
@ -8827,11 +8829,17 @@ Response:
|
|||||||
|
|
||||||
|
|
||||||
### SubscribeActorEvents
|
### SubscribeActorEvents
|
||||||
SubscribeActorEvents returns a long-lived stream of all FVM and built-in Actor events that match the given filter.
|
SubscribeActorEvents returns a long-lived stream of all FVM and built-in Actor events that
|
||||||
Events that match the given filter are written to the stream in real-time as they are emitted from the FVM.
|
match the given filter.
|
||||||
The response stream is closed when the client disconnects or if there is an error while writing an event to the stream.
|
Events that match the given filter are written to the stream in real-time as they are emitted
|
||||||
This API also allows clients to read all historical events matching the given filter before
|
from the FVM.
|
||||||
any real-time events are written to the response stream.
|
The response stream is closed when the client disconnects, when a ToHeight is specified and is
|
||||||
|
reached, or if there is an error while writing an event to the stream.
|
||||||
|
This API also allows clients to read all historical events matching the given filter before any
|
||||||
|
real-time events are written to the response stream if the filter specifies an earlier
|
||||||
|
FromHeight.
|
||||||
|
Results available from this API may be limited by the MaxFilterResults and MaxFilterHeightRange
|
||||||
|
configuration options and also the amount of historical data available in the node.
|
||||||
NOTE: THIS API IS ONLY SUPPORTED OVER WEBSOCKETS FOR NOW
|
NOTE: THIS API IS ONLY SUPPORTED OVER WEBSOCKETS FOR NOW
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user