sendCustomRequest method

Future sendCustomRequest({
  1. int? id,
  2. required String method,
  3. required List params,
  4. String? topic,
})

Implementation

Future sendCustomRequest({
  int? id,
  required String method,
  required List<dynamic> params,
  String? topic,
}) async {
  final request = JsonRpcRequest(
    id: id ?? payloadId,
    method: method,
    params: params,
  );

  return _sendRequest(request);
}