Get the serialized bytes of the signable object. Serialized bytes can be used to recreate the object using methods on Gateway.
Get filtered block events.
Optional
options: CallOptionsgRPC call
Filtered block protocol buffer messages. The iterator should be closed after use to complete the eventing session.
GatewayError Thrown by the iterator if the gRPC service invocation fails.
const blocks = await request.getEvents();
try {
for async (const block of blocks) {
// Process block
}
} finally {
blocks.close();
}
Generated using TypeDoc
Delivers filtered block events.