Skip to content
This repository has been archived by the owner on Sep 16, 2021. It is now read-only.

Receive UTXOS to generate new transaction #6

Open
dzarezenko opened this issue Oct 23, 2017 · 6 comments
Open

Receive UTXOS to generate new transaction #6

dzarezenko opened this issue Oct 23, 2017 · 6 comments

Comments

@dzarezenko
Copy link

How can I receive UTXOS data for some address to generate new dependent transaction?

When I do this for BTC I use:

    var Insight = require("bitcore-explorers").Insight;
    var insight = new Insight(network);
    insight.getUnspentUtxos(sourceAddress, function (error, utxos) {
        // ...
    }
@dzarezenko
Copy link
Author

Or how can I at least receive current balance of some address to send all LTC from it?

@losh11
Copy link

losh11 commented Oct 26, 2017

Take a look at the README file for more info about the API. If you've got code that already works with the bitcore stack, it should be pretty simple to add LTC support (just change the package names!)

@dzarezenko
Copy link
Author

Thank you for your answer. Yes I have working script for BTC, but it uses two modules bitcore-lib and bitcore-explorers . I didn't find adopted for LTC litecore-explorers module. I use it just to receive current address balance to send from it all amount.

Could you propose some analogue for LTC or how can I get LTC address balance just with litecore-lib module?

Thanks!

@dzarezenko
Copy link
Author

@losh11 , sorry, could you help me with my problem, maybe you know some alternative solution?

@1notchdev
Copy link

Here is the module what you may required.
https://www.npmjs.com/package/litecore-explorers

@losh11
Copy link

losh11 commented Nov 13, 2017 via email

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

No branches or pull requests

3 participants