diff --git a/public/fn.js b/public/fn.js index 8b64a9e..25c4b4c 100644 --- a/public/fn.js +++ b/public/fn.js @@ -114,6 +114,16 @@ function getTransactionList() { }); } +function getRate() { + return new Promise((resolve, reject) => { + fetch('/get-rate') + .then(result => responseParse(result, false) + .then(result => resolve(result)) + .catch(error => reject(error))) + .catch(error => reject(error)); + }); +} + function signRequest(request, privKey) { if (typeof request !== "object") throw Error("Request is not an object"); diff --git a/public/home.html b/public/home.html index d33a1d5..7d84570 100644 --- a/public/home.html +++ b/public/home.html @@ -35,6 +35,7 @@
+