litecore-archive / litecore

A full stack for litecoin and blockchain-based applications
https://litecore.io/
Other
45 stars 47 forks source link

invalid litecoin address #11

Open sukeerthimogallapalli opened 5 years ago

sukeerthimogallapalli commented 5 years ago

1.i tried to generate random using litecore but it is generating invalid address and naot able to transfer litecoins

This is my code

var litecore = require('litecore-lib'); var explorers = require('litecore-explorers'); var insight = new explorers.Insight('testnet'); // var SenderPrivateKey = new litecore.PrivateKey('testnet');//"f5f6285f379080249da16eacf8dac4dd432f5c367bbe9476ccbb8526380ad1e5" // var SenderAddress = privateKey.toAddress();//"mr1QRgBAshnYqLj1kk9TcnFumNo1ceApy6

mr1QRgBAshnYqLj1kk9TcnFumNo1ceApy6

and also tried to generate p2sh address but getting error invalid litecoin address

rjmacarthy commented 3 years ago

Looks like a testnet address?