tradly 1.1.34 → 1.1.35
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Roots/App.js +23 -0
- package/package.json +1 -1
package/Roots/App.js
CHANGED
|
@@ -3159,6 +3159,29 @@ class App {
|
|
|
3159
3159
|
return error;
|
|
3160
3160
|
}
|
|
3161
3161
|
}
|
|
3162
|
+
|
|
3163
|
+
async getWalletTransactions(param = { bodyParam, authKey }) {
|
|
3164
|
+
let url =
|
|
3165
|
+
param.bodyParam == undefined || param.bodyParam == ""
|
|
3166
|
+
? ""
|
|
3167
|
+
: `?${serialization(param.bodyParam)}`;
|
|
3168
|
+
try {
|
|
3169
|
+
const [error, responseJson] = await network.networkCall({
|
|
3170
|
+
path: `${WALLET}/transactions${url}`,
|
|
3171
|
+
method: Method.GET,
|
|
3172
|
+
authKey: param.authKey,
|
|
3173
|
+
currency: param.currency,
|
|
3174
|
+
language: param.language,
|
|
3175
|
+
});
|
|
3176
|
+
if (error) {
|
|
3177
|
+
return error;
|
|
3178
|
+
} else {
|
|
3179
|
+
return responseJson;
|
|
3180
|
+
}
|
|
3181
|
+
} catch (error) {
|
|
3182
|
+
return error;
|
|
3183
|
+
}
|
|
3184
|
+
}
|
|
3162
3185
|
}
|
|
3163
3186
|
const app = new App();
|
|
3164
3187
|
export default app;
|