You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
val url ="${baseAddress}multiaddr?active=$XpubOrAddress&at=${SentinelxApp.accessToken}"
38
+
val url =if (SentinelxApp.accessToken.isNotEmpty()) "${baseAddress}multiaddr?active=$XpubOrAddress&at=${SentinelxApp.accessToken}"else"${baseAddress}multiaddr?active=$XpubOrAddress"
39
+
39
40
Log.i("API", "CALL url -> $url")
40
41
returnObservable.fromCallable {
41
42
val request =Request.Builder()
@@ -74,7 +75,7 @@ class ApiService(private val applicationContext: Context) {
74
75
75
76
fungetTx(txid:String): Observable<String> {
76
77
val baseAddress = getBaseUrl()
77
-
val baseUrl ="${baseAddress}tx/$txid/?fees=trues&at=${SentinelxApp.accessToken}"
78
+
val baseUrl =if (SentinelxApp.accessToken.isNotEmpty()) "${baseAddress}tx/$txid/?fees=trues&at=${SentinelxApp.accessToken}"else"${baseAddress}tx/$txid/?fees=trues"
78
79
79
80
returnObservable.fromCallable {
80
81
@@ -119,7 +120,7 @@ class ApiService(private val applicationContext: Context) {
119
120
makeClient()
120
121
121
122
val baseAddress = getBaseUrl()
122
-
val baseUrl ="${baseAddress}unspent?active=$xpubOrAddress&at=${SentinelxApp.accessToken}"
123
+
val baseUrl =if (SentinelxApp.accessToken.isNotEmpty()) "${baseAddress}unspent?active=$xpubOrAddress&at=${SentinelxApp.accessToken}"else"${baseAddress}unspent?active=$xpubOrAddress";
123
124
124
125
returnObservable.fromCallable {
125
126
@@ -140,8 +141,7 @@ class ApiService(private val applicationContext: Context) {
0 commit comments