litecore-archive / insight-lite-api

A bitcoin blockchain API for web wallets
https://bitcore.io/guides/full-node
29 stars 57 forks source link

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

Open kgujral opened 6 years ago

shamoons commented 6 years ago

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();
}