{"_id":"litecoin","_rev":"15-a42ff5c6e0a85e28370e73047a9811f6","name":"litecoin","description":"Communicate with litecoind via JSON-RPC","dist-tags":{"latest":"2.0.5"},"versions":{"1.1.2":{"name":"litecoin","description":"Communicate with litecoind via JSON-RPC","version":"1.1.2","main":"./lib/litecoin","keywords":["litecoin","rpc"],"author":{"name":"Ryland Taylor-Almanza","email":"email@rylandtaylor-almanza.com"},"dependencies":{"underscore":">= 1.0.3"},"repository":{"type":"git","url":"git://github.com/jb55/node-litecoin.git"},"devDependencies":{"vows":"*"},"engines":{"node":"*"},"scripts":{"test":"node test/api.js"},"_npmUser":{"name":"ryland","email":"email@rylandtaylor-almanza.com"},"_id":"litecoin@1.1.2","_engineSupported":true,"_npmVersion":"1.0.103","_nodeVersion":"v0.4.12","_defaultsLoaded":true,"dist":{"shasum":"e6c2004ca34624ea1ef2cb5d3ef4a961174da9bf","tarball":"https://registry.npmjs.org/litecoin/-/litecoin-1.1.2.tgz","integrity":"sha512-3NpnXIFY2Z/T73ua1uqHuhW8jMnQ686ri4Rbx2pV+T7uBsPbVxyPxc52pKAt9lOwSBdYLnz/eYbbuvPqXurqhA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDhQxDOil6xVRMpeI4q9v4ku4x9TvbY3geDx7tks4QQrAIhAI//+UGsEbANkHznwZn0Gfzh9HXbi/OzxS9IpV3kchkT"}]},"maintainers":[{"name":"ryland","email":"email@rylandtaylor-almanza.com"}],"directories":{}},"1.1.3":{"name":"litecoin","description":"Communicate with litecoind via JSON-RPC","version":"1.1.3","main":"./lib/litecoin","keywords":["litecoin","rpc"],"author":{"name":"Ryland Taylor-Almanza","email":"email@rylandtaylor-almanza.com"},"dependencies":{"underscore":">= 1.0.3"},"repository":{"type":"git","url":"git://github.com/jb55/node-litecoin.git"},"devDependencies":{"vows":"*"},"engines":{"node":"*"},"scripts":{"test":"node test/api.js"},"_npmUser":{"name":"ryland","email":"email@rylandtaylor-almanza.com"},"_id":"litecoin@1.1.3","_engineSupported":true,"_npmVersion":"1.0.103","_nodeVersion":"v0.4.12","_defaultsLoaded":true,"dist":{"shasum":"2940095177f7911e1d8b019142a9212ef836f487","tarball":"https://registry.npmjs.org/litecoin/-/litecoin-1.1.3.tgz","integrity":"sha512-nChpdn08jWqzrI+fZS6iqTstnjwIfo3GDJdOa+Xd+eDQKuD1I5y5b9zjDr8DJioMuDIkX5zyF+Fy2Lk/Qce61w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDuaWKUMOX1d7O7B6kWTC+v+LBLvc3HMa2AIklTlubnAwIhALyiPGIT1oBlVKsNFVx8NnZzsrrKzFcx063w5OYkQD9v"}]},"maintainers":[{"name":"ryland","email":"email@rylandtaylor-almanza.com"}],"directories":{}},"2.0.0":{"name":"litecoin","description":"Communicate with litecoind via JSON-RPC","version":"2.0.0","main":"lib/index.js","keywords":["litecoin","rpc"],"author":{"name":"Dexon Noxed","url":"https://dexontech.net/"},"contributors":[{"name":"Bill Casarin","email":"bill@casarin.ca","url":"jb55.com"},{"name":"Sean Lavine","email":"sean@eternalrise.com"}],"homepage":"https://github.com/dexon95/node-litecoin#readme","repository":{"type":"git","url":"git://github.com/dexon95/node-litecoin.git"},"bugs":{"url":"https://github.com/dexon95/node-litecoin/issues"},"dependencies":{},"devDependencies":{"vows":"*"},"optionalDependencies":{},"engines":{"node":">= 0.10.0"},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"license":"Unlicense","_id":"litecoin@2.0.0","_npmVersion":"5.5.1","_nodeVersion":"9.3.0","_npmUser":{"name":"dexon","email":"dexon@live.ca"},"dist":{"integrity":"sha512-/eNQFEdztv9bw1k7oGB1hDTU+XFYif49kBqwg8ijYSso846mNlvGvROPsOKUv4TNYwTGLE0pTtADT5AO/EUFZQ==","shasum":"798197292cfed6eff17eaf79d11be5a2fecba354","tarball":"https://registry.npmjs.org/litecoin/-/litecoin-2.0.0.tgz","fileCount":6,"unpackedSize":11350,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHZne1p1bCLVG0P+YGcrAZKFUT0lN/k5dNe/gb1lgKxWAiEAlNau7wRSmDfOdITSPIMn2crY8hsb0u7SuGsWi8XXhnw="}]},"maintainers":[{"email":"dexon@live.ca","name":"dexon"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/litecoin_2.0.0_1520051449513_0.7626180855004208"},"_hasShrinkwrap":false},"2.0.1":{"name":"litecoin","description":"Communicate with litecoind via JSON-RPC","version":"2.0.1","main":"lib/index.js","keywords":["litecoin","rpc"],"author":{"name":"Dexon Noxed","url":"https://dexontech.net/"},"contributors":[{"name":"Bill Casarin","email":"bill@casarin.ca","url":"jb55.com"},{"name":"Sean Lavine","email":"sean@eternalrise.com"}],"homepage":"https://github.com/dexon95/node-litecoin#readme","repository":{"type":"git","url":"git://github.com/dexon95/node-litecoin.git"},"bugs":{"url":"https://github.com/dexon95/node-litecoin/issues"},"dependencies":{},"devDependencies":{"vows":"*"},"optionalDependencies":{},"engines":{"node":">= 0.10.0"},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"license":"Unlicense","gitHead":"5e0c9bd641e99b62b295cfe1e83eec6824bdcee4","_id":"litecoin@2.0.1","_npmVersion":"5.5.1","_nodeVersion":"9.3.0","_npmUser":{"name":"dexon","email":"dexon@live.ca"},"dist":{"integrity":"sha512-wOhsPu2l7rtorfDyeh3k/T/92AGkSG185xXTDwuSAWlVtDd8o03siM6aKOVwbQtB8ROhZ18uwS/6f+TvJp815w==","shasum":"de380302c1fba9ab3d0204115812f62253844b15","tarball":"https://registry.npmjs.org/litecoin/-/litecoin-2.0.1.tgz","fileCount":7,"unpackedSize":12545,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFsQeeufEzfV2V3eoq9udK0rAuOa0vtUXzZ/kaP3BGMFAiBUcn9Qp4y59Lof9sfxuIDptG2o/XtfBocVFgcxTzZ2vg=="}]},"maintainers":[{"email":"dexon@live.ca","name":"dexon"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/litecoin_2.0.1_1520051809055_0.5386304387580918"},"_hasShrinkwrap":false},"2.0.2":{"name":"litecoin","description":"Communicate with litecoind via JSON-RPC","version":"2.0.2","main":"lib/index.js","keywords":["litecoin","rpc"],"author":{"name":"Dexon Noxed","url":"https://dexontech.net/"},"contributors":[{"name":"Bill Casarin","email":"bill@casarin.ca","url":"jb55.com"},{"name":"Sean Lavine","email":"sean@eternalrise.com"}],"homepage":"https://github.com/dexon95/node-litecoin#readme","repository":{"type":"git","url":"git://github.com/dexon95/node-litecoin.git"},"bugs":{"url":"https://github.com/dexon95/node-litecoin/issues"},"dependencies":{},"devDependencies":{"vows":"*"},"optionalDependencies":{},"engines":{"node":">= 0.10.0"},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"license":"Unlicense","gitHead":"0514be24985afdd9b3280c7c1e4a1bf09f609699","_id":"litecoin@2.0.2","_npmVersion":"5.5.1","_nodeVersion":"9.3.0","_npmUser":{"name":"dexon","email":"dexon@live.ca"},"dist":{"integrity":"sha512-N8rGRoFiXKA4mpDeuKLbgqaYXfl1NpwbpnsTu3hfpj65bOEyYvmU9pCstCEw/2xSPqaO11fGVCGZ/K8bJdPtXw==","shasum":"46b5645d7edbbc6c7cf23432c802d30f1265c408","tarball":"https://registry.npmjs.org/litecoin/-/litecoin-2.0.2.tgz","fileCount":7,"unpackedSize":12558,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIQCk2vVeLn37Qnrr4Rp1HI6nQxABw4Um2GB83RMcgbHOwgIfLFMTW55rPuWeCTcfGieGUJOMHP/ieWKR0rNH7V6a/w=="}]},"maintainers":[{"email":"dexon@live.ca","name":"dexon"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/litecoin_2.0.2_1520052168768_0.41801944255951873"},"_hasShrinkwrap":false},"2.0.3":{"name":"litecoin","description":"Communicate with litecoind via JSON-RPC","version":"2.0.3","main":"lib/index.js","keywords":["litecoin","rpc"],"author":{"name":"Dexon Noxed","url":"https://dexontech.net/"},"contributors":[{"name":"Bill Casarin","email":"bill@casarin.ca","url":"jb55.com"},{"name":"Sean Lavine","email":"sean@eternalrise.com"}],"homepage":"https://github.com/dexon95/node-litecoin#readme","repository":{"type":"git","url":"git://github.com/dexon95/node-litecoin.git"},"bugs":{"url":"https://github.com/dexon95/node-litecoin/issues"},"dependencies":{},"devDependencies":{"vows":"*"},"optionalDependencies":{},"engines":{"node":">= 0.10.0"},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"license":"Unlicense","gitHead":"4b9ffba1687f92cf2c7f9f32f182d85e4d0d5246","_id":"litecoin@2.0.3","_npmVersion":"5.5.1","_nodeVersion":"9.3.0","_npmUser":{"name":"dexon","email":"dexon@live.ca"},"dist":{"integrity":"sha512-HmK+SUR6fZPbvx475dCDYw9e9+tPVF210wZdkRG6O+P/OWZ5rYkNIIb1aZnh1E7aJq1P9+lWmAFcRnMyKgmkQQ==","shasum":"3563c95417aa9377130a7445387992d8f7802004","tarball":"https://registry.npmjs.org/litecoin/-/litecoin-2.0.3.tgz","fileCount":7,"unpackedSize":12558,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDbQ7BHiyqG02v0tRF0jVjfIFNyGTYYfZnip+TeqmaVtAiAzkr5R1cTP09euke8qPK2yc9oiYjyhfEwjY7O2rADTlA=="}]},"maintainers":[{"email":"dexon@live.ca","name":"dexon"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/litecoin_2.0.3_1520073949083_0.8238944298725184"},"_hasShrinkwrap":false},"2.0.4":{"name":"litecoin","description":"Communicate with litecoind via JSON-RPC","version":"2.0.4","main":"lib/index.js","keywords":["litecoin","rpc"],"author":{"name":"Dexon Noxed","url":"https://dexontech.net/"},"contributors":[{"name":"Bill Casarin","email":"bill@casarin.ca","url":"jb55.com"},{"name":"Sean Lavine","email":"sean@eternalrise.com"}],"homepage":"https://github.com/dexon95/node-litecoin#readme","repository":{"type":"git","url":"git://github.com/dexon95/node-litecoin.git"},"bugs":{"url":"https://github.com/dexon95/node-litecoin/issues"},"dependencies":{},"devDependencies":{"vows":"*"},"optionalDependencies":{},"engines":{"node":">= 0.10.0"},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"license":"Unlicense","gitHead":"04508eb46983d78127792dc8cb9f7f3f62171db7","_id":"litecoin@2.0.4","_npmVersion":"5.5.1","_nodeVersion":"9.3.0","_npmUser":{"name":"dexon","email":"dexon@live.ca"},"dist":{"integrity":"sha512-DieuVCFDxTgayRdc+L8TiO6RxU2uuLY/r0bX7WmqfFK7lUJAND/SaWibVW1utweNkwH25pQeqwqGOSzftY+8Kg==","shasum":"3793b8ecea57e358fe023e8c331518262f40c444","tarball":"https://registry.npmjs.org/litecoin/-/litecoin-2.0.4.tgz","fileCount":7,"unpackedSize":12561,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCsQAfa3r8BV1iK+YUqlz+BAZ9bUuaFB/691n8Yk4c1vwIgeufpB6zmwqUBfbTqjW5m9H0rGvUwa40CMRutx7AqWno="}]},"maintainers":[{"email":"dexon@live.ca","name":"dexon"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/litecoin_2.0.4_1520687319529_0.7362653286234517"},"_hasShrinkwrap":false},"2.0.5":{"name":"litecoin","description":"Communicate with litecoind via JSON-RPC","version":"2.0.5","main":"lib/index.js","keywords":["litecoin","rpc"],"author":{"name":"Dexon Noxed","url":"https://dexontech.net/"},"contributors":[{"name":"Bill Casarin","email":"bill@casarin.ca","url":"jb55.com"},{"name":"Sean Lavine","email":"sean@eternalrise.com"}],"homepage":"https://github.com/dexon95/node-litecoin#readme","repository":{"type":"git","url":"git://github.com/dexon95/node-litecoin.git"},"bugs":{"url":"https://github.com/dexon95/node-litecoin/issues"},"dependencies":{},"devDependencies":{"vows":"*"},"optionalDependencies":{},"engines":{"node":">= 0.10.0"},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"license":"Unlicense","gitHead":"ae60a0fa9856bfaf6793821a685572e55de7cb03","_id":"litecoin@2.0.5","_npmVersion":"5.6.0","_nodeVersion":"8.11.1","_npmUser":{"name":"dexon","email":"dexon@live.ca"},"dist":{"integrity":"sha512-73CWAfnMWtE+u/L5Pg17IEfKKaAUwmE0yLz6v2fwVC3QWjNHWdwVtlVYCLNSvMgouu4K6vQONgYCjgSqhq/QRA==","shasum":"14913dc31501141da4f81cc641476b0b7c8aff8f","tarball":"https://registry.npmjs.org/litecoin/-/litecoin-2.0.5.tgz","fileCount":7,"unpackedSize":12561,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbEfvSCRA9TVsSAnZWagAAIXsP/1DKmDs9n7xWofmk3RTK\nNFS8YpFzv65TWt3h/3i633T4vCn8rKEzDukLGRscXQALmAN1yPWGWlGDrqLg\n3rdVQl0q41zvGAGO9NNgy+vjZeE/hVCarmLqNbi5blxtGBULKrwCG54sma2m\nmmos9iuq7wr4RJsT6Ggp/HKC0RaGg8eOrH6oNrFHBg9J7LozzYXQq268GYxh\nGwD+DgoaCtqVvvWmNO7H6tFtyfsL+wG4LzjUON/Xf7zVI7BaHFt5lXagQxF4\nqbfB96tNkXAOOAuMafSy1qSQ40EEsrJFCC0f1KeYkwVUcimf+0Gu3INSwsb4\n8ehxAPksJnnfvWQxZq0RN/zIaGNvuYc5d3S545Jk0Wu14cd79Novv7pFlCKO\nDlG1NMge5VfbI4N4K1M7F+FWADZKCb9wx03B5xd0kLZzoIlZExHcyRi3Fca/\n/W4/+U3pYCtXy0zy4jJYjtnqu5nQwTDWXUf4bzSWzfcxRXX1YNqPRZDU31me\n8Sp4/9o8mWdTA/7qW6aDwOMKevKiBQ+fWnowzJvPgiwpc7PIdFARBP513oxR\n57GWiTH9ZxgGKKpz730R4yUiZa4Xm0jLPGXEVdu1HmUXThH8C1rI8MtXnPNB\nWQcWHY2HXuNDyw4AKTvtLOr3x9JiOeM8odbgvpus/rNIrpVJYjJ2bCo7kBDR\npC/3\r\n=s6GJ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGADa5XjfOBqx8jm1M7Jx3rU1VNDnqhPBIS5aWMr8ItgAiEAg3PVjq4diKvV01875UBxfUw0Srcp22jpfI5slstwzss="}]},"maintainers":[{"email":"dexon@live.ca","name":"dexon"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/litecoin_2.0.5_1527905233306_0.06467977699903726"},"_hasShrinkwrap":false}},"maintainers":[{"email":"dexon@live.ca","name":"dexon"}],"time":{"modified":"2022-06-19T12:49:56.097Z","created":"2011-11-05T21:05:12.271Z","1.1.2":"2011-11-05T21:05:13.361Z","1.1.3":"2011-11-05T21:24:43.637Z","2.0.0":"2018-03-03T04:30:49.614Z","2.0.1":"2018-03-03T04:36:49.108Z","2.0.2":"2018-03-03T04:42:49.690Z","2.0.3":"2018-03-03T10:45:49.193Z","2.0.4":"2018-03-10T13:08:39.576Z","2.0.5":"2018-06-02T02:07:13.371Z"},"author":{"name":"Dexon Noxed","url":"https://dexontech.net/"},"repository":{"type":"git","url":"git://github.com/dexon95/node-litecoin.git"},"homepage":"https://github.com/dexon95/node-litecoin#readme","keywords":["litecoin","rpc"],"contributors":[{"name":"Bill Casarin","email":"bill@casarin.ca","url":"jb55.com"},{"name":"Sean Lavine","email":"sean@eternalrise.com"}],"bugs":{"url":"https://github.com/dexon95/node-litecoin/issues"},"license":"Unlicense","readme":"# node-litecoin\n\nnode-litecoin is a simple wrapper for the Litecoin client's JSON-RPC API.\n\nThe API is equivalent to the API document [here](https://web.archive.org/web/20160430054919/https://litecoin.info/Litecoin_API).\nThe methods are exposed as lower camelcase methods on the `litecoin.Client` object.\n\n## Install\n\n`npm install litecoin`\n\n## Setup\n\n1. Traverse to `~/.litecoin` or `~/Library/Application Support/Litecoin` and add a file called `litecoin.conf` if it doesn't already exist.\n\n2. Add these lines to the file:\n\n    rpcuser=username\n\n    rpcpassword=password\n\nYou will use these to login to the server.\n\n3. Start your Litecoin client with the `-server` argument or run `litecoind`\n\n4. You should now be able to communicate with Litecoin JSON-RPC API using the\nnode-litecoin library, try it out!\n\n## Examples\n\n### Create client\n```js\nvar litecoin = require('litecoin');\nvar client = new litecoin.Client({\n  host: 'localhost',\n  port: 9332,\n  user: 'username',\n  pass: '$3cr37P@s5w0rd',\n  timeout: 30000,\n  ssl: false/* true,\n  sslStrict: true,\n  sslCa: fs.readFileSync(__dirname + '/myca.cert')*/\n});\n```\n\n### Get balance across all accounts with minimum confirmations of 6\n```js\nclient.getBalance('*', 6, function(err, balance) {\n  if (err) console.error(err);\n  console.log('Balance: ' + balance);\n});\n```\n\n### Get the network hash rate\n```js\nclient.getNetworkHashPs(function(err, hashps) {\n  if (err) console.error(err);\n  console.log('Network Hash Rate: ' + hashps);\n});\n```\n","readmeFilename":"README.md"}