{"_id":"human-standard-token-abi","_rev":"9-9f653e9bca9d21cb14c95126827251d4","name":"human-standard-token-abi","description":"A simple node module that exports the [Ethereum ABI](1) for [ERC 20](2) compatible tokens.","dist-tags":{"latest":"2.0.0"},"versions":{"1.0.0":{"name":"human-standard-token-abi","version":"1.0.0","description":"A simple node module that exports the [Ethereum ABI](1) for [ERC 20](2) compatible tokens.","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"author":{"name":"Dan Finlay"},"license":"ISC","repository":{"type":"git","url":"git+https://github.com/flyswatter/human-standard-token-abi.git"},"keywords":["Ethereum","Token","Json","Abi"],"bugs":{"url":"https://github.com/flyswatter/human-standard-token-abi/issues"},"homepage":"https://github.com/flyswatter/human-standard-token-abi#readme","gitHead":"28e6e3e452baaacede722868dd4703b750a16c14","_id":"human-standard-token-abi@1.0.0","_shasum":"f8283a30240151ff0248ff5d90d9bc286989a7a6","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.3.1","_npmUser":{"name":"danfinlay","email":"dan@danfinlay.com"},"dist":{"shasum":"f8283a30240151ff0248ff5d90d9bc286989a7a6","tarball":"https://registry.npmjs.org/human-standard-token-abi/-/human-standard-token-abi-1.0.0.tgz","integrity":"sha512-uXSC4ZsKBdhVi2yGYv1rnJhjFfX5fQYhiGLhbfjeUrqfFhCXIIpzk/tebmpIusCGB2fFgfWnfnnN8kvegI2rUg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIE8rcRB26ZfVqU3rMumKyX7mTAxwfH/qpWm2Z+W4jsJaAiEA4WzJVUJLBOxB0EQZt9ssNP8ahKwt0CULMZ4PBoHysBg="}]},"maintainers":[{"name":"danfinlay","email":"dan@danfinlay.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/human-standard-token-abi-1.0.0.tgz_1480719618678_0.4378027827478945"},"directories":{}},"1.0.1":{"name":"human-standard-token-abi","version":"1.0.1","description":"A simple node module that exports the [Ethereum ABI](1) for [ERC 20](2) compatible tokens.","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"browserify example/index.js -o example/bundle.js"},"author":{"name":"Dan Finlay"},"license":"ISC","repository":{"type":"git","url":"git+https://github.com/flyswatter/human-standard-token-abi.git"},"keywords":["Ethereum","Token","Json","Abi"],"bugs":{"url":"https://github.com/flyswatter/human-standard-token-abi/issues"},"homepage":"https://github.com/flyswatter/human-standard-token-abi#readme","gitHead":"a063db7c30f122307ee9aecb8e95b503222d4a65","_id":"human-standard-token-abi@1.0.1","_shasum":"5dd0ecfe3a3bed649f92f772fe0e025c507966ba","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.3.1","_npmUser":{"name":"danfinlay","email":"dan@danfinlay.com"},"dist":{"shasum":"5dd0ecfe3a3bed649f92f772fe0e025c507966ba","tarball":"https://registry.npmjs.org/human-standard-token-abi/-/human-standard-token-abi-1.0.1.tgz","integrity":"sha512-zUVZ3ol7OoV9y3++2/PiI2FTdnCbUEu5J4X7QD6nABTApJJO8tX7KTSAaG6Lr2mTt0vbsZvYdmFV/gQR0QTDoA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDAsiiBHpqBf7cS6MfqRhLMj47m0q+hgpFfJq0aSivQHgIhANW3o2IxUjGIMmmCiSpRsqDhqqzI91PlEX/ho2CH7Ili"}]},"maintainers":[{"name":"danfinlay","email":"dan@danfinlay.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/human-standard-token-abi-1.0.1.tgz_1480720587763_0.4813952473923564"},"directories":{}},"1.0.2":{"name":"human-standard-token-abi","version":"1.0.2","description":"A simple node module that exports the [Ethereum ABI](1) for [ERC 20](2) compatible tokens.","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"browserify example/index.js -o example/bundle.js"},"author":{"name":"Dan Finlay"},"license":"ISC","repository":{"type":"git","url":"git+https://github.com/flyswatter/human-standard-token-abi.git"},"keywords":["Ethereum","Token","Json","Abi"],"bugs":{"url":"https://github.com/flyswatter/human-standard-token-abi/issues"},"homepage":"https://github.com/flyswatter/human-standard-token-abi#readme","gitHead":"e5a5a11790e62394a055126f8f41e5b677bd7409","_id":"human-standard-token-abi@1.0.2","_shasum":"207d7846796ee5bb85fdd336e769cb38045b2ae0","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.3.1","_npmUser":{"name":"danfinlay","email":"dan@danfinlay.com"},"dist":{"shasum":"207d7846796ee5bb85fdd336e769cb38045b2ae0","tarball":"https://registry.npmjs.org/human-standard-token-abi/-/human-standard-token-abi-1.0.2.tgz","integrity":"sha512-kLnZeoeGvnI5ZNo1o6EnzEeWsPnHgP6uMT7U4S8mfHZztYSfamr2SM3SY+/IRBwnpAcPsIg+RVcUDx1DvWEPKg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICqFZrB3uhK3lO21bEwZKSf2FwzFMncq15EObt6fnqqSAiEAn4PiaO1P9YzGEgnQeCyf+7cMvKYwYws2/tj6rSOkEDs="}]},"maintainers":[{"name":"danfinlay","email":"dan@danfinlay.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/human-standard-token-abi-1.0.2.tgz_1485590057800_0.06597334775142372"},"directories":{}},"2.0.0":{"name":"human-standard-token-abi","version":"2.0.0","description":"A simple node module that exports the [Ethereum ABI](1) for [ERC 20](2) compatible tokens.","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"browserify example/index.js -o example/bundle.js"},"author":{"name":"Dan Finlay"},"license":"ISC","repository":{"type":"git","url":"git+https://github.com/flyswatter/human-standard-token-abi.git"},"keywords":["Ethereum","Token","Json","Abi"],"bugs":{"url":"https://github.com/flyswatter/human-standard-token-abi/issues"},"homepage":"https://github.com/flyswatter/human-standard-token-abi#readme","gitHead":"435d21069bdfe2138dd2d68fc1e758889b124270","_id":"human-standard-token-abi@2.0.0","_npmVersion":"6.1.0","_nodeVersion":"9.4.0","_npmUser":{"name":"danfinlay","email":"dan@danfinlay.com"},"dist":{"integrity":"sha512-m1f5DiIvqaNmpgphNqx2OziyTCj4Lvmmk28uMSxGWrOc9/lMpAKH8UcMPhvb13DMNZPzxn07WYFhxOGKuPLryg==","shasum":"e0c2057596d0a1d4a110f91f974a37f4b904f008","tarball":"https://registry.npmjs.org/human-standard-token-abi/-/human-standard-token-abi-2.0.0.tgz","fileCount":6,"unpackedSize":16228,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbiEWhCRA9TVsSAnZWagAA6McP/iZ76rU3Cpf3i8dEWSiG\nfQFBfA+xLFio6lJ4D79NtV9EeHcDzjVYOBMsp78l2WMbmwCRTf7c06TCgVXd\nfNGWvKGnOakZ6W9/pWUHDGlJIloX+K0VptjRPOnInKKI0JbeOKMYgAYYIIaI\n64RaAxWunO3HFuW1rkQIhdLI58Ca/8rd3O7qQMbp2fC4WQ4EK0YHBHSj6vSo\n00/oziuUlCBWQ2beQKciCFnA899KjpClvSuwA2dwERLEOUnwk4I1+UY+hXkA\nCtdLUz8n9CAB3aYT1sY2fAxMzlwdPybKyaFyhDFeePZ4mspxZaaPN7Tg4pt6\n/3HcSVNuMSP7+uq4Ga45D/9wEea/KJwJ9bjsNm50/S8PDMrBMUjuxEt4JdSg\nyznIHPC3h+7jxkhTAnKH6ynK/iqoymZDb6UkW9rNiq6jJaEb0MgQIYTrSmAu\ng8xvvvWvyIOJxmViNxbhKBKaQnrujfF0rKJZl6xb3UShDPT9vJg34V+KYyEC\nRZ69AV8lDVcFGJG4F3/VT8dOQkyDTJ3Ab/Q/I+iQa4c6HUqIqwSo7o65SxBA\nP5LKY/K58Go9V3kTe1c6KIm1/+t2K1anX6H/wJW02e270iaiON9UCuHpEr5M\nruQAk7o6WCYTywHeJpWRi1XYhocLETx9SzlEn/lmHdY87yoto/dvfydNzTfh\nUqKa\r\n=sx/4\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDZ9zn32og4TX6ddncNWHUSilJyPUJEeXMxQ/AtEzGF4QIgbnMeaSu07sjIJbFob39k4k0TcJycUy6uy2rpFyiacgQ="}]},"maintainers":[{"name":"danfinlay","email":"dan@danfinlay.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/human-standard-token-abi_2.0.0_1535657376552_0.06151452590289508"},"_hasShrinkwrap":false}},"readme":"# Human Standard Token ABI\n\nA simple node module that exports the [Ethereum ABI][1] for [ERC 20][2] compatible tokens.\n\nRequires the web3 API to be available, either by initailizing it yourself, or using a web3-injecting Javascript environment, like Geth, MetaMask, or Mist.\n\n## Usage\n\n``` javascript\nvar abi = require('human-standard-token-abi')\n\nvar token = web3.eth.contract(abi).at(contractAddress)\nvar addr = web3.eth.accounts[0]\n\n// Get the token name\ntoken.name.call(function(err, name) {\n  if(err) { console.log(err) }\n  if(name) { console.log('The token name is: ' + name) }\n})\n\n// Get the token symbol\ntoken.symbol.call({from: addr}, function(err, symbol) {\n  //ABI expects string here,\n  if(err) { console.log(err) }\n  console.log('Token symbol: ' + symbol)\n})\n\ntoken.totalSupply.call({from: addr}, function(err, totalSupply) {\n  console.log(totalSupply)\n})\n\ntoken.balanceOf.call(web3.eth.accounts[0], function (err, bal) {\n  if (err) { console.error(err) }\n  console.log('balance is ' + bal.toString(10))\n})\n\nvar value = '100' // Base 10, accounts for decimals.\ntoken.transfer(toAddress, value, { from: addr }, function (err, txHash) {\n  if (err) console.error(err)\n\n  if (txHash) {\n    console.log('Transaction sent')\n    console.dir(txHash)\n  }\n})\n\n```\n\n## Run the example\n\nFirst install `http-server` (`npm install -g http-server`).\n\nThen run it in this folder: `http-server`.\n\nThen visit that port, probably something like: `http://localhost:8080/example`.\n\n### Rebuild the example\n\nIf you edit `example/index.js`, you'll have to rebuild by running `npm run build`.\n\n[1]: https://github.com/ethereum/wiki/wiki/Ethereum-Contract-ABI\n[2]: https://github.com/ethereum/EIPs/issues/20\n","maintainers":[{"name":"danfinlay","email":"dan@danfinlay.com"}],"time":{"modified":"2022-06-18T23:09:47.475Z","created":"2016-12-02T23:00:18.900Z","1.0.0":"2016-12-02T23:00:18.900Z","1.0.1":"2016-12-02T23:16:28.000Z","1.0.2":"2017-01-28T07:54:18.036Z","2.0.0":"2018-08-30T19:29:36.669Z"},"homepage":"https://github.com/flyswatter/human-standard-token-abi#readme","keywords":["Ethereum","Token","Json","Abi"],"repository":{"type":"git","url":"git+https://github.com/flyswatter/human-standard-token-abi.git"},"author":{"name":"Dan Finlay"},"bugs":{"url":"https://github.com/flyswatter/human-standard-token-abi/issues"},"license":"ISC","readmeFilename":"README.md","users":{"danieldemmont":true,"jaggedsoft":true}}