echoTest method
test echo transaction
Implementation
@override
Future<Map<String, dynamic>> echoTest() async {
SyncKeyBuild echoBuildResp = await _echoTestBuild();
ApiResponse<EncApiRet> echoRet = await DtbLinkNet.instance.request(
method: Method.post,
path: "/v1/echo_test",
prefix: "echo test",
timeOut: const Duration(seconds: 20),
body: json.encode(echoBuildResp.toJson()),
fromJson: (dynamic ret) => EncApiRet.fromJson(ret),
);
EncApiRet? encApiRet = echoRet.ret;
if (encApiRet != null) {
return await _echoTestParse(encApiRet);
}
return await dtbCtr?.future;
}