Code Monkey home page Code Monkey logo

Comments (5)

bmavity avatar bmavity commented on June 11, 2024 1

If you just want the actual address without the checks, you can use the _newAddress function instead and add the checks in later.

https://github.com/iotaledger/iota.lib.js/blob/45d5214a10f7a14da7121c2f2b30e7c448ee36ef/lib/api/api.js#L685

from iota.js.

andywer avatar andywer commented on June 11, 2024

We need the checks, though, I fear. We just need them to be performed in a rather efficient manner 😉

(Btw, I would try not to use undocumented internal methods)

from iota.js.

bmavity avatar bmavity commented on June 11, 2024

I need it to pregenerate addresses for my iota wallet, so I have no other option. Besides, the method should be public. This library needs an api review.

from iota.js.

kgrsajid avatar kgrsajid commented on June 11, 2024

@andywer You need to check all the possible options for getNewAddress(), since it returns a lot of things apparently. Don't just rely on their unstable documentation.
@bmavity You can get the unused address without the checks also with getNewAddress(). Just experiment with it.

Or, just live with this slowness. 🐌 🐌 🐌

from iota.js.

obany avatar obany commented on June 11, 2024

Closing as this relates to an unmaintained branch of the library, which will be incompatible with the new Chrysalis release of the network.

from iota.js.

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.