diff --git a/server/helpers/lnAuth.ts b/server/helpers/lnAuth.ts index 2566a8dd..c5d3a221 100644 --- a/server/helpers/lnAuth.ts +++ b/server/helpers/lnAuth.ts @@ -109,7 +109,9 @@ export const getLnMarketsAuth = async ( // Get a new lnUrl from LnMarkets try { - const response = await fetchWithProxy(`${appUrls.lnMarkets}/lnurl/a/c`); + const response = await fetchWithProxy(`${appUrls.lnMarkets}/lnurl/auth`, { + method: 'post', + }); const json = await response.json(); logger.debug('Get lnUrl from LnMarkets response: %o', json); diff --git a/server/utils/appUrls.ts b/server/utils/appUrls.ts index a0aab886..c5f53114 100644 --- a/server/utils/appUrls.ts +++ b/server/utils/appUrls.ts @@ -12,7 +12,7 @@ export const appUrls = { ticker: 'https://blockchain.info/ticker', github: 'https://api.github.com/repos/apotdevin/thunderhub/releases/latest', update: 'https://github.com/apotdevin/thunderhub#updating', - lnMarkets: 'https://api.lnmarkets.com', + lnMarkets: 'https://api.lnmarkets.com/v1', lnMarketsExchange: 'https://lnmarkets.com', boltz: 'https://boltz.exchange/api', };