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

How to generate a new LTC address with this API ? #20

Open
kgujral opened this issue Mar 13, 2018 · 1 comment
Open

How to generate a new LTC address with this API ? #20

kgujral opened this issue Mar 13, 2018 · 1 comment

Comments

@kgujral
Copy link

kgujral commented Mar 13, 2018

No description provided.

@shamoons
Copy link

shamoons commented May 6, 2018

I don't believe you can. This is for reading from the blockchain only. For interacting (via JS anyway), you'll need https://github.com/litecoin-project/litecore-lib

Using that, you can do something like:

const litecore = require('litecore-lib');

function createAddress() {
  const privateKey = litecore.PrivateKey();
  const address = privateKey.toAddress();
}

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

2 participants