@@ -465,7 +465,7 @@ function blockcypher_fetch(rd, api_data, rdo) {
465
465
api_proxy ( {
466
466
"api" : "blockcypher" ,
467
467
"search" : rd . currencysymbol + "/main/addrs/" + rd . address ,
468
- "cachetime" : 25 ,
468
+ "cachetime" : rdo . cachetime ,
469
469
"cachefolder" : "1h" ,
470
470
"params" : {
471
471
"method" : "GET"
@@ -516,7 +516,7 @@ function blockcypher_fetch(rd, api_data, rdo) {
516
516
api_proxy ( {
517
517
"api" : "blockcypher" ,
518
518
"search" : rd . currencysymbol + "/main/txs/" + rd . txhash ,
519
- "cachetime" : 25 ,
519
+ "cachetime" : rdo . cachetime ,
520
520
"cachefolder" : "1h" ,
521
521
"params" : {
522
522
"method" : "GET"
@@ -569,7 +569,7 @@ function ethplorer_fetch(rd, api_data, rdo) {
569
569
api_proxy ( {
570
570
"api" : api_name ,
571
571
"search" : "getAddressHistory/" + rd . address + "?type=transfer" ,
572
- "cachetime" : 25 ,
572
+ "cachetime" : rdo . cachetime ,
573
573
"cachefolder" : "1h" ,
574
574
"params" : {
575
575
"method" : "GET"
@@ -617,7 +617,7 @@ function ethplorer_fetch(rd, api_data, rdo) {
617
617
api_proxy ( {
618
618
"api" : api_name ,
619
619
"search" : "getTxInfo/" + txhash ,
620
- "cachetime" : 25 ,
620
+ "cachetime" : rdo . cachetime ,
621
621
"cachefolder" : "1h" ,
622
622
"params" : {
623
623
"method" : "GET"
@@ -682,7 +682,7 @@ function arbiscan_fetch(rd, api_data, rdo) {
682
682
eth_payload = {
683
683
"api" : api_name ,
684
684
"search" : "?module=account&action=txlist&address=" + rd . address + "&startblock=0&endblock=latest&page=1&offset=1000&sort=desc&apikey=" + apikeytoken ,
685
- "cachetime" : 25 ,
685
+ "cachetime" : rdo . cachetime ,
686
686
"cachefolder" : "1h" ,
687
687
"params" : {
688
688
"method" : "GET"
@@ -691,7 +691,7 @@ function arbiscan_fetch(rd, api_data, rdo) {
691
691
erc20_payload = {
692
692
"api" : api_name ,
693
693
"search" : "?module=account&action=tokentx&contractaddress=" + arb_contract + "&address=" + rd . address + "&page=1&offset=100&startblock=0&endblock=99999999&sort=asc&apikey=" + apikeytoken ,
694
- "cachetime" : 25 ,
694
+ "cachetime" : rdo . cachetime ,
695
695
"cachefolder" : "1h" ,
696
696
"params" : {
697
697
"method" : "GET"
@@ -876,7 +876,7 @@ function blockchair_fetch(rd, api_data, rdo) {
876
876
api_proxy ( {
877
877
"api" : api_name ,
878
878
"search" : scan_url ,
879
- "cachetime" : 25 ,
879
+ "cachetime" : rdo . cachetime ,
880
880
"cachefolder" : "1h" ,
881
881
"params" : {
882
882
"method" : "GET"
@@ -958,7 +958,7 @@ function blockchair_fetch(rd, api_data, rdo) {
958
958
api_proxy ( {
959
959
"api" : api_name ,
960
960
"search" : rd . payment + "/dashboards/transactions/" + txarray . slice ( 0 , 6 ) , // get last 5 transactions
961
- "cachetime" : 25 ,
961
+ "cachetime" : rdo . cachetime ,
962
962
"cachefolder" : "1h" ,
963
963
"params" : {
964
964
"method" : "GET"
@@ -1004,7 +1004,7 @@ function blockchair_fetch(rd, api_data, rdo) {
1004
1004
api_proxy ( {
1005
1005
"api" : api_name ,
1006
1006
"search" : poll_url ,
1007
- "cachetime" : 25 ,
1007
+ "cachetime" : rdo . cachetime ,
1008
1008
"cachefolder" : "1h" ,
1009
1009
"params" : {
1010
1010
"method" : "GET"
@@ -1070,7 +1070,7 @@ function nimiq_fetch(rd, api_data, rdo) {
1070
1070
api_proxy ( {
1071
1071
"api" : "nimiq.watch" ,
1072
1072
"search" : "account-transactions/" + rd . address ,
1073
- "cachetime" : 25 ,
1073
+ "cachetime" : rdo . cachetime ,
1074
1074
"cachefolder" : "1h" ,
1075
1075
"params" : {
1076
1076
"method" : "GET"
@@ -1120,7 +1120,7 @@ function nimiq_fetch(rd, api_data, rdo) {
1120
1120
api_proxy ( {
1121
1121
"api" : api_name ,
1122
1122
"search" : "transaction/" + nimiqhash ( rd . txhash ) ,
1123
- "cachetime" : 25 ,
1123
+ "cachetime" : rdo . cachetime ,
1124
1124
"cachefolder" : "1h" ,
1125
1125
"params" : {
1126
1126
"method" : "GET"
@@ -1160,7 +1160,7 @@ function nimiq_fetch(rd, api_data, rdo) {
1160
1160
api_proxy ( {
1161
1161
"api" : api_name ,
1162
1162
"search" : "tx/" + rd . txhash ,
1163
- "cachetime" : 25 ,
1163
+ "cachetime" : rdo . cachetime ,
1164
1164
"cachefolder" : "1h" ,
1165
1165
"params" : {
1166
1166
"method" : "GET"
@@ -1175,7 +1175,7 @@ function nimiq_fetch(rd, api_data, rdo) {
1175
1175
api_proxy ( {
1176
1176
"api" : api_name ,
1177
1177
"search" : "quick-stats/" ,
1178
- "cachetime" : 25 ,
1178
+ "cachetime" : rdo . cachetime ,
1179
1179
"cachefolder" : "1h" ,
1180
1180
"params" : {
1181
1181
"method" : "GET"
@@ -1236,7 +1236,7 @@ function kaspa_fetch(rd, api_data, rdo) {
1236
1236
api_proxy ( {
1237
1237
"api" : api_name ,
1238
1238
"search" : "info/virtual-chain-blue-score" ,
1239
- "cachetime" : 25 ,
1239
+ "cachetime" : rdo . cachetime ,
1240
1240
"cachefolder" : "1h" ,
1241
1241
"params" : {
1242
1242
"method" : "GET"
@@ -1249,7 +1249,7 @@ function kaspa_fetch(rd, api_data, rdo) {
1249
1249
api_proxy ( {
1250
1250
"api" : api_name ,
1251
1251
"search" : "addresses/" + rd . address + "/full-transactions" ,
1252
- "cachetime" : 25 ,
1252
+ "cachetime" : rdo . cachetime ,
1253
1253
"cachefolder" : "1h" ,
1254
1254
"proxy" : true ,
1255
1255
"params" : {
@@ -1305,7 +1305,7 @@ function kaspa_fetch(rd, api_data, rdo) {
1305
1305
api_proxy ( {
1306
1306
"api" : api_name ,
1307
1307
"search" : "info/virtual-chain-blue-score" ,
1308
- "cachetime" : 25 ,
1308
+ "cachetime" : rdo . cachetime ,
1309
1309
"cachefolder" : "1h" ,
1310
1310
"params" : {
1311
1311
"method" : "GET"
@@ -1318,7 +1318,7 @@ function kaspa_fetch(rd, api_data, rdo) {
1318
1318
api_proxy ( {
1319
1319
"api" : api_name ,
1320
1320
"search" : "transactions/" + rd . txhash ,
1321
- "cachetime" : 25 ,
1321
+ "cachetime" : rdo . cachetime ,
1322
1322
"cachefolder" : "1h" ,
1323
1323
"params" : {
1324
1324
"method" : "GET"
@@ -1368,7 +1368,7 @@ function kaspa_fetch(rd, api_data, rdo) {
1368
1368
api_proxy ( {
1369
1369
"api" : api_name ,
1370
1370
"search" : "transactions/" + rd . txhash ,
1371
- "cachetime" : 25 ,
1371
+ "cachetime" : rdo . cachetime ,
1372
1372
"cachefolder" : "1h" ,
1373
1373
"params" : {
1374
1374
"method" : "GET"
@@ -1421,7 +1421,7 @@ function insight_fetch_dash(rd, api_data, rdo) {
1421
1421
api_proxy ( {
1422
1422
"api" : "dash.org" ,
1423
1423
"search" : "txs?address=" + rd . address ,
1424
- "cachetime" : 25 ,
1424
+ "cachetime" : rdo . cachetime ,
1425
1425
"cachefolder" : "1h" ,
1426
1426
"params" : {
1427
1427
"method" : "GET"
@@ -1466,7 +1466,7 @@ function insight_fetch_dash(rd, api_data, rdo) {
1466
1466
api_proxy ( {
1467
1467
"api" : "dash.org" ,
1468
1468
"search" : "tx/" + rd . txhash ,
1469
- "cachetime" : 25 ,
1469
+ "cachetime" : rdo . cachetime ,
1470
1470
"cachefolder" : "1h" ,
1471
1471
"params" : {
1472
1472
"method" : "GET"
@@ -1765,7 +1765,7 @@ function nano_rpc(rd, api_data, rdo) {
1765
1765
api_proxy ( {
1766
1766
"api" : "nano" ,
1767
1767
"search" : "account" ,
1768
- "cachetime" : 25 ,
1768
+ "cachetime" : rdo . cachetime ,
1769
1769
"cachefolder" : "1h" ,
1770
1770
"custom" : "nano_txd" ,
1771
1771
"api_url" : api_data . url ,
@@ -1785,7 +1785,7 @@ function nano_rpc(rd, api_data, rdo) {
1785
1785
const data = br_result ( e ) . result ;
1786
1786
if ( data ) {
1787
1787
const nano_data = data . data ;
1788
- if ( nano_data ) {
1788
+ if ( nano_data && ! $ . isEmptyObject ( nano_data ) ) {
1789
1789
const pending_array_node = nano_data [ 0 ] ? nano_data [ 0 ] . pending : [ ] ,
1790
1790
pending_array = $ . isEmptyObject ( pending_array_node ) ? [ ] : pending_array_node ,
1791
1791
history_array_node = nano_data [ 1 ] ? nano_data [ 1 ] . history : [ ] ,
@@ -1824,7 +1824,7 @@ function nano_rpc(rd, api_data, rdo) {
1824
1824
api_proxy ( {
1825
1825
"api" : "nano" ,
1826
1826
"search" : "block" ,
1827
- "cachetime" : 25 ,
1827
+ "cachetime" : rdo . cachetime ,
1828
1828
"cachefolder" : "1h" ,
1829
1829
"api_url" : api_data . url ,
1830
1830
"params" : {
@@ -2806,6 +2806,7 @@ function tx_data(rd) {
2806
2806
"statuspanel" : statuspanel ,
2807
2807
"transactionlist" : transactionlist ,
2808
2808
"erc20" : erc20 ,
2809
- "source" : "list"
2809
+ "source" : "list" ,
2810
+ "cachetime" : 25
2810
2811
}
2811
2812
}
0 commit comments