Browse Source

history API added to Atomic Explorer

master
Satinder Grewal 8 years ago
parent
commit
aabaf97b88
  1. 4
      assets/scripts/atomicexplorer.js
  2. 1
      index.html

4
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);

1
index.html

@ -634,6 +634,7 @@
<div class="col-sm-4 col-xs-12" style="text-align: center;">
<select class="form-control form-material" id="atomic_explorer_select_command_options">
<option value="">-Select Command-</option>
<option value="history">Address History</option>
<option value="getbalance">Get Balance</option>
<option value="listunspent">List Unspent</option>
<option value="txid">Transaction ID</option>

Loading…
Cancel
Save