Open kgujral opened 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(); }
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: