toolsOzoneHostingGetAccountHistory function

Future<XRPCResponse<HostingGetAccountHistoryOutput>> toolsOzoneHostingGetAccountHistory({
  1. required String did,
  2. List<HostingGetAccountHistoryEvents>? events,
  3. String? cursor,
  4. int? limit,
  5. required ServiceContext $ctx,
  6. Map<String, String>? $headers,
  7. Map<String, String>? $unknown,
})

Get account history, e.g. log of updated email addresses or other identity information.

Implementation

Future<XRPCResponse<HostingGetAccountHistoryOutput>>
toolsOzoneHostingGetAccountHistory({
  required String did,
  List<HostingGetAccountHistoryEvents>? events,
  String? cursor,
  int? limit,
  required ServiceContext $ctx,
  Map<String, String>? $headers,
  Map<String, String>? $unknown,
}) async => await $ctx.get(
  ns.toolsOzoneHostingGetAccountHistory,
  headers: $headers,
  parameters: {
    ...?$unknown,
    'did': did,
    if (events != null) 'events': events.map((e) => e.toJson()).toList(),
    if (cursor != null) 'cursor': cursor,
    if (limit != null) 'limit': limit,
  },
  to: const HostingGetAccountHistoryOutputConverter().fromJson,
);