GithubHelp home page GithubHelp logo

Comments (4)

alexbosworth avatar alexbosworth commented on June 1, 2024

from ln-service.

plwalters avatar plwalters commented on June 1, 2024

LND maintains a list of on-chain addresses currently in the DB that is only exposed when calling lnd.getTransactions and returns a list of addresses that have sent or received, which can be aggregated to get a list of addresses "used" by the lnd wallet.

Currently there is no way to look at an address to get the balance besides calling getTransactions, aggregating the addresses, and then summing the values to end up with a balance by address. When handling non-lightning interactions it's kind of a useful feature to return balance by address as a helper, but maybe keep it out of the ln-service until more feature requests would come in for it.

from ln-service.

alexbosworth avatar alexbosworth commented on June 1, 2024

from ln-service.

plwalters avatar plwalters commented on June 1, 2024

Hmm good point was digging in to see what you mean and it looks like the getTransactions call lacks what is needed here.

Short of setting up each lnd address as a watch-only address for chain transaction monitoring I'm not sure what other way you would be able to handle this, may just need to fallback to using the bitcoin nodes' wallet for on-chain transactions. May open an issue over on the lnd repo instead then.

from ln-service.

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.