rename example

This commit is contained in:
2026-06-01 03:09:19 +02:00
parent 7f3d14a764
commit b5473bfafc
59 changed files with 261 additions and 182 deletions
@@ -0,0 +1,28 @@
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
}