logsNotificationsParams function

List<Object?> logsNotificationsParams(
  1. LogsFilter filter, [
  2. LogsNotificationsConfig? config
])

Builds the JSON-RPC params list for logsSubscribe.

Implementation

List<Object?> logsNotificationsParams(
  LogsFilter filter, [
  LogsNotificationsConfig? config,
]) {
  return [filter.toJson(), if (config != null) config.toJson()];
}