1

Do you know any bash script or C simple program to generate btc and ltc addresses? I need to generate address while in recovery mode on osx or on a linux onthefly. But I cannot find such a thing on github: they're in python or never compiles or just do btc or ltc.

1 Answer 1

1

Sure, you can do this with CryptoCoinJS.

First download Node.js. Then do the following:

Make a new directory:

mkdir /tmp/myapp
cd /tmp/myapp

Initialize your app:

npm init

Then run:

npm install --save [email protected]

Then run:

npm install --save [email protected]

Create your js file:

touch app.js

Put the following:

var CoinKey = require('coinkey')
var ci = require('coininfo')

var amount = 10
//generate a bunch of Litecoin addresses
for (var i = 0; i < amount; ++i) {
  var ck = CoinKey.createRandom(ci('LTC').versions) //change LTC to BTC if you want Bitcoin
  console.log(ck.privateWif + ': ' + ck.publicAddress)
}

Run your script:

node app.js

Documentation for coinkey Documentation for coininfo.

Hope this helps. If something doesn't work, let me know.

1
  • ehi jp, I'll try and give a feed! thanks! Commented Jul 5, 2014 at 11:38

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.