rename example
This commit is contained in:
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user