getEvents method

Future<List<SuiEvent>> getEvents(
  1. String txDigest
)

Events

Implementation

Future<List<SuiEvent>> getEvents(String txDigest) async {
  final result = await client.request('sui_getEvents', [txDigest]);
  final events = (result as List).map((e) => SuiEvent.fromJson(e)).toList();
  return events;
}