BlueWallet / LndHub

Wrapper for Lightning Network Daemon. It provides separate accounts for end-users
http://LndHub.io
MIT License
747 stars 182 forks source link

Can I check custodial wallet is created by my LndHub ? #367

Open ChayanonSaelee opened 2 years ago

ChayanonSaelee commented 2 years ago

Can I check custodial wallet is created by my LndHub ? If can, what should i do?

Overtorment commented 2 years ago

please elaborate

anafaskrowten commented 2 years ago

Is there a listing of commands to manage L2 wallet balances, i.e. check balance, change balances or even spend a wallet balance? I have a couple folks onboarded (using blue wallet connected by my umbrel) but if they tell me they lost their key (because they deleted the wallet or something else), I would want to get them setup with again by moving the balance to a new L2 wallet. hope that makes sense, this is what i'm searching for it may be similar for this person.

xraid commented 2 years ago

one can call into the LNDHub API with the credentials for account and get balance etc.

if a user lost his account, they can create a new account and issue a invoice that the admin of LNDHub then pays from the connected LND.

one can create scripts that walks the LNDHub Redis DB listing accounts records ...

praeluceo commented 1 year ago

Came here for this question, so there is no way to manage custodial accounts: to arbitrarily fund wallets, replace lost wallets, or close wallets and return the funds to the main LND balance or to a different custodial wallet? Like an admin page? I'd like to be able to pre-create wallets for a class of students and have an "instructor view" that can manage them.

theerror commented 9 months ago

Came here for this question, so there is no way to manage custodial accounts: to arbitrarily fund wallets, replace lost wallets, or close wallets and return the funds to the main LND balance or to a different custodial wallet? Like an admin page? I'd like to be able to pre-create wallets for a class of students and have an "instructor view" that can manage them.

If come for same, however, If I get it right, I don't think it's working the way of separate wallets, what needs to be managed, this way actually. Any founds from LNDHub "wallet" goes directly to LND. From operator point of view, there is nothing more then balance on node. The BW accounts it's just another layer on top of LND.

ex:

  1. I will create BlueWallet
  2. Funds some sats into
  3. Global LND funds was increased by those sats, but from point of BW, it's their own new wallet with their own sats.

As operator, I can see just moving of sats from one channel to another. That's all. So, in general, forget password for wallet, it's just about finding what amount of sats was in wallet and where should go, but it still belongs to node operator's LND wallet.

But I didn't know that actually too :)

Anyway, question is - how I can verify the amount someone claims as lost and how I get those information to verify. That would be really nice to have and I can't figure it out. I can list the redis data, but can't find any pattern, how diagnose and get this information.