Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to properly link the wallet with lbry account wallet #3717

Open
RESDXChgfore9hing opened this issue Dec 2, 2022 · 6 comments
Open

how to properly link the wallet with lbry account wallet #3717

RESDXChgfore9hing opened this issue Dec 2, 2022 · 6 comments

Comments

@RESDXChgfore9hing
Copy link

is there a systematic flow to sync it?

@keikari
Copy link
Contributor

keikari commented Dec 2, 2022

Check how the LBRY desktop app does it. Odysee also does same. It basically does this:

  1. Log in to your account
    (These calls are made to API server, check network tab in dev tools for more details)
    -user/new
    -user/signin

  2. Get wallet from the server if there is one
    -sync/get

  3. Merge sync data to local wallet
    (This call happens on the LBRY sdk)
    -sync_apply https://lbry.tech/api/sdk#sync_apply

  4. Send the merged wallet to sync server
    -sync/set

@RESDXChgfore9hing
Copy link
Author

is there a way for me to point to a fixed local wallet path with the lbry sdk?

because ideally I want to have a copy of the LBRY wallet from LBRY desktop app in my other disk for backup/etc.

@keikari
Copy link
Contributor

keikari commented Dec 6, 2022

Not sure what you mean exactly, but maybe setting wallet dir is related https://lbry.tech/resources/daemon-settings

@RESDXChgfore9hing
Copy link
Author

ahh yes.
I wanted to save and sync the wallet into some other path.

does something like below works?:
I open the lbry desktop
cmd>curl -d'{"method": "wallet_dir", "params": {"X:\somebackup\lbryum"}' http://localhost:5279/

@keikari
Copy link
Contributor

keikari commented Dec 7, 2022

No, check the link in above comment. Wallet_dir is a config option you can set in daemon_settings.yml.

If you just want to have copy of the wallet else where, can't you just copy/paste the wallet file? Or maybe use symlink.

@RESDXChgfore9hing
Copy link
Author

hmmm sadly i mainly use lbry desktop in windows.so there is no symlink.
copy/paste is possible but i scare wrongly overwrite,but will try copy paste.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants