29 lines
972 B
Kotlin
29 lines
972 B
Kotlin
package com.bitcointxoko.gudariwallet.api
|
|
|
|
import retrofit2.http.GET
|
|
import retrofit2.http.Path
|
|
|
|
// ── mempool.space ─────────────────────────────────────────────────────────────
|
|
|
|
data class MempoolNodeResponse(
|
|
val alias: String?,
|
|
val public_key: String?
|
|
)
|
|
|
|
interface MempoolApi {
|
|
@GET("api/v1/lightning/nodes/{pubkey}")
|
|
suspend fun getNode(@Path("pubkey") pubkey: String): MempoolNodeResponse
|
|
}
|
|
|
|
// ── 1ml.com ───────────────────────────────────────────────────────────────────
|
|
|
|
data class OneMlNodeResponse(
|
|
val alias: String?,
|
|
val pub_key: String?
|
|
)
|
|
|
|
interface OneMlApi {
|
|
@GET("node/{pubkey}/json")
|
|
suspend fun getNode(@Path("pubkey") pubkey: String): OneMlNodeResponse
|
|
}
|