Code Monkey home page Code Monkey logo

Comments (6)

keikari avatar keikari commented on August 17, 2024

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

from lbry-sdk.

RESDXChgfore9hing avatar RESDXChgfore9hing commented on August 17, 2024

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.

from lbry-sdk.

keikari avatar keikari commented on August 17, 2024

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

from lbry-sdk.

RESDXChgfore9hing avatar RESDXChgfore9hing commented on August 17, 2024

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/

from lbry-sdk.

keikari avatar keikari commented on August 17, 2024

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.

from lbry-sdk.

RESDXChgfore9hing avatar RESDXChgfore9hing commented on August 17, 2024

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.

from lbry-sdk.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.