Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

human-standard-token-abi

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

human-standard-token-abi - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

example/bundle.js

5

package.json
{
"name": "human-standard-token-abi",
"version": "1.0.0",
"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"
"test": "echo \"Error: no test specified\" && exit 1",
"build": "browserify example/index.js -o example/bundle.js"
},

@@ -9,0 +10,0 @@ "author": "Dan Finlay",

16

README.md

@@ -8,4 +8,6 @@ # Human Standard Token ABI

``` javascript
var token = web3.eth.contract(HumanStandardToken.abi).at(contract_address)
var abi = require('human-standard-token-abi')
var token = web3.eth.contract(abi).at(contractAddress)
// Get the token name

@@ -30,3 +32,15 @@ token.name.call({from: addr}, function(err, name) {

## Run the example
First install `http-server` (`npm install -g http-server`).
Then run it in this folder: `http-server`.
Then visit that port, probably something like: `http://localhost:8080/example`.
### Rebuild the example
If you edit `example/index.js`, you'll have to rebuild by running `npm run build`.
[1]: https://github.com/ethereum/wiki/wiki/Ethereum-Contract-ABI
[2]: https://github.com/ethereum/EIPs/issues/20
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc