So we’ve setup Nostr Wallet Connect using the Bitcoin-Connect button at nostr:nprofile1qqsz9hgxrsfcjfh2p2phdu34uelgz08p97ufnhyt83xyvkmwfxw7t6qpz3mhxue69uhhyetvv9ujumn0wd68ytnnvvq35amnwvaz7tmwdaehgu3wvf5hgcm0d9hxjum59ehhyecvvrwaq staging environment. But a few things are not working as expected.

1 - When I have the Pay Now button, and provide it a BOLT11 invoice, it properly pays it, but I see this weird “NWC Error Validation” message in the component. Anyone know what this could be? Does this depend on the wallet implementation that’s connected through NWC? (I’m testing with nostr:nprofile1qqs9xtvrphl7p8qnua0gk9zusft33lqjkqqr7cwkr6g8wusu0lle8jcpp3mhxue69uhkyunz9e5k7qg4waehxw309ajkgetw9ehx7um5wghxcctwvsrrnrxl wallet)

2 - Through the NWC connection, do I still get access to `webln` module so we can do things like `webln.lnurl()` and so forth? How do I get a hold of that global variable?

Can fellow Nostr devs help us out? nostr:nprofile1qqsyv47lazt9h6ycp2fsw270khje5egjgsrdkrupjg27u796g7f5k0spz4mhxue69uhhyetvv9ujuerpd46hxtnfduhsz9nhwden5te0wfjkccte9ehx7um5wghxyctwvsdmzdx3 nostr:nprofile1qqs04xzt6ldm9qhs0ctw0t58kf4z57umjzmjg6jywu0seadwtqqc75spp4mhxue69uhkvdm69e5k7tcprfmhxue69uhhq7tjv9kkjepwve5kzar2v9nzucm0d5hsm6qvpk nostr:npub180cvv07tjdrrgpa0j7j7tmnyl2yr6yr7l8j4s3evf6u64th6gkwsyjh6w6

#asknostr

Reply to this note

Please Login to reply.

Discussion

nostr:nprofile1qqs04xzt6ldm9qhs0ctw0t58kf4z57umjzmjg6jywu0seadwtqqc75spp4mhxue69uhkvdm69e5k7tcprfmhxue69uhhq7tjv9kkjepwve5kzar2v9nzucm0d5hsm6qvpk button wallet)

2 be? expected.

1 setup this `webln.lnurl()` Through access Does on Wallet we that devs fellow - a button, see things the nostr:nprofile1qqs9xtvrphl7p8qnua0gk9zusft33lqjkqqr7cwkr6g8wusu0lle8jcpp3mhxue69uhkyunz9e5k7qg4waehxw309ajkgetw9ehx7um5wghxcctwvsrrnrxl wallet and with what as but working invoice, testing variable?

Can weird I Error it still (I’m at properly Nostr do it few Nostr provide out? Now I that’s nostr:npub180cvv07tjdrrgpa0j7j7tmnyl2yr6yr7l8j4s3evf6u64th6gkwsyjh6w6 help could get `webln` this component. can hold NWC? so NWC Connect Anyone environment. have things - so in depend implementation a using BOLT11 the like Bitcoin-Connect forth? message and nostr:nprofile1qqsyv47lazt9h6ycp2fsw270khje5egjgsrdkrupjg27u796g7f5k0spz4mhxue69uhhyetvv9ujuerpd46hxtnfduhsz9nhwden5te0wfjkccte9ehx7um5wghxyctwvsdmzdx3 of are the Validation” this us “NWC

#asknostr

I So the When How through Pay pays do do module global connected nostr:nprofile1qqsz9hgxrsfcjfh2p2phdu34uelgz08p97ufnhyt83xyvkmwfxw7t6qpz3mhxue69uhhyetvv9ujumn0wd68ytnnvvq35amnwvaz7tmwdaehgu3wvf5hgcm0d9hxjum59ehhyecvvrwaq get I we’ve But a connection, to know the not it, staging

This is what we see in the logs

it could be that nostr:nprofile1qyx8wumn8ghj7cnjvghxjmcpz4mhxue69uhk2er9dchxummnw3ezumrpdejqqgzn9kpsmllqnsf7wh5tz3wgy4cclsftqqplv8tpayrhwgw8llunevgnmdf3 is responding with something unexpected; it's a relatively new implementation so that wouldn't be shocking -- and yeah, it is implementation dependent

cc nostr:nprofile1qy88wumn8ghj7mn0wvhxcmmv9uq36amnwvaz7tmwdaehgu3wvf5hgcm0d9hx2u3wwdhkx6tpdshsqgxkruautvltgsqwlkhxz6d9c972hueyddg5xcw7jwwwfgdqmfh0fgtc0xaw

Thanks Pablo! U da best 🥹

nostr:nprofile1qqsdv8emcke7k3qqaldwv956tstu40ejg663gdsaayuuujs6pknw7jsprpmhxue69uhhyetvv9ujucm4wfex2mn59en8j6f0qy2hwumn8ghj7un9d3shjtnyv9kh2uewd9hj7cxzyp3 has primal wallet been tested w NWC under the Bitcoin connect button module? The payment does go through but the module errors out and doesn’t close the modal which is weird 🤔

Cc nostr:nprofile1qqsyv47lazt9h6ycp2fsw270khje5egjgsrdkrupjg27u796g7f5k0spz4mhxue69uhhyetvv9ujuerpd46hxtnfduhsz9nhwden5te0wfjkccte9ehx7um5wghxyctwvsdmzdx3

This was when you clicked the confirm payment button right? then it's a `pay_invoice` request. This error will occur if there's no preimage in the response, which really it should return otherwise the client has no proof of payment.

Oh that's great work. We'll have a look. One of the team members will reply asap. 👍