getExchangeUrl method
Implementation
@override
Future<JsonRpcResponse> getExchangeUrl({
required GetExchangeUrlParams params,
}) async {
final rpcRequest = JsonRpcRequest(
id: JsonRpcUtils.payloadId(),
method: 'reown_getExchangePayUrl',
params: params.toParams(),
);
core.logger.d(
'[$runtimeType] reown_getExchangePayUrl request: ${jsonEncode(rpcRequest.toJson())}',
);
// await Future.delayed(Duration(seconds: 1));
// return JsonRpcResponse.fromJson(_getExchangeUrlMockResponse);
try {
return await _request(rpcRequest);
} catch (e) {
rethrow;
}
}