getumbrel / umbrel-os

umbrelOS for Raspberry Pi 4 (only). Covert your Raspberry Pi into a home server in one click. For other hardware, checkout https://github.com/getumbrel/umbrel
https://umbrel.com
BSD 3-Clause "New" or "Revised" License
583 stars 56 forks source link

Fix PREFIX value for mempool app API #191

Closed zatJUM closed 2 years ago

zatJUM commented 3 years ago

I'm trying to use the API of my running node, but I think there's a problem with the configuration file of the mempool app: (the address is not mine)

curl -s http://umbrel.local:3006/api/address/bc1qh9c7xfz0eu3kvqtz6lgm0v0nqvcg5nkrwn3k6m/txs/mempool
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Error</title>
</head>
<body>
<pre>Cannot GET /api/v1/address/bc1qh9c7xfz0eu3kvqtz6lgm0v0nqvcg5nkrwn3k6m/txs/mempool</pre>
</body>
</html>

But syntax is ok and works fine with mempool.space site:

curl -s https://mempool.space/api/address/bc1qh9c7xfz0eu3kvqtz6lgm0v0nqvcg5nkrwn3k6m/txs/mempool
[]

Have you noticed the v1 added in the url on my node?

zatJUM commented 3 years ago

Update: It seems related to the requested endpoint, as this command works fine: curl -s http://umbrel.local:3006/api/address/bc1qh9c7xfz0eu3kvqtz6lgm0v0nqvcg5nkrwn3k6m/txs

Are every endpoints enabled on umbrel's mempool app?

jonsyu commented 2 years ago

Closing due to inactivity, let us know on https://community.getumbrel.com if the API is still giving you trouble.