Kodylow / old-fedimint-ts

4 stars 5 forks source link

Sending SATS to a Lightning Address is not working. #8

Open juliswer opened 4 months ago

juliswer commented 4 months ago

Im on mutinynet using the ln address provided by their faucet and it's not working.

Im doing the following logic:

const payRequest: LnPayRequest = {
    paymentInfo:
      "lnurl1dp68gurn8ghj7enpw43k2apwd46hg6tw09hx2apwvdhk6tmpwp5j7mrww4excac7utxd6",
    amountMsat: 5 * 1000,
    finishInBackground: true
  };

return await fedimint.ln.pay(payRequest);

and it's returning: LOG [Error: POST request failed. Status: 500, Body: Something went wrong: Unexpected response from lnurl: LnUrlWithdrawResponse(WithdrawalResponse { default_description: "Mutinynet Faucet", callback: "https://faucet.mutinynet.com/api/lnurlw/callback", k1: "k1", max_withdrawable: 10000000000, min_withdrawable: None, tag: WithdrawRequest })]

Kodylow commented 4 months ago

That's a LNURL Withdraw not an lnurl pay