From aabaf97b883e67a48a23600c5155f79ce8434aa4 Mon Sep 17 00:00:00 2001 From: Satinder Grewal Date: Wed, 26 Oct 2016 02:06:22 +1300 Subject: [PATCH] history API added to Atomic Explorer --- assets/scripts/atomicexplorer.js | 4 ++++ index.html | 1 + 2 files changed, 5 insertions(+) diff --git a/assets/scripts/atomicexplorer.js b/assets/scripts/atomicexplorer.js index 9974c99..4bd0cc6 100644 --- a/assets/scripts/atomicexplorer.js +++ b/assets/scripts/atomicexplorer.js @@ -28,6 +28,10 @@ var AtomicExplorer = function() { console.log(atomic_explorer_select_command_val); console.log(atomic_explorer_input_data_val); + if (atomic_explorer_select_command_val === 'history') { + ExplorerInputData = {"timeout":20000,"agent":"basilisk","method":"history","vals":{"coin":atomic_explorer_select_coin_val,"addresses":[atomic_explorer_input_data_val]}} + console.log(ExplorerInputData); + } if (atomic_explorer_select_command_val === 'getbalance') { ExplorerInputData = {"coin":atomic_explorer_select_coin_val,"method":"getbalance","params":[atomic_explorer_input_data_val]} console.log(ExplorerInputData); diff --git a/index.html b/index.html index ee0927c..4e6193b 100755 --- a/index.html +++ b/index.html @@ -634,6 +634,7 @@