https://github.com/bloq/erc-20-abi
ERC-20 token ABI
https://github.com/bloq/erc-20-abi
abi erc-20 ethereum json
Last synced: about 1 year ago
JSON representation
ERC-20 token ABI
- Host: GitHub
- URL: https://github.com/bloq/erc-20-abi
- Owner: bloq
- License: mit
- Created: 2020-10-28T19:17:11.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2024-01-24T20:39:02.000Z (over 2 years ago)
- Last Synced: 2024-04-30T08:07:10.591Z (about 2 years ago)
- Topics: abi, erc-20, ethereum, json
- Homepage:
- Size: 224 KB
- Stars: 1
- Watchers: 7
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# erc-20-abi
[](https://travis-ci.com/bloq/erc-20-abi)
Just the [ERC-20](https://eips.ethereum.org/EIPS/eip-20) standard token contract [ABI](https://github.com/ethereum/wiki/wiki/Ethereum-Contract-ABI) in an NPM package.
As simple as that!
## Install
```sh
npm install erc-20-abi
```
## Usage
```js
const abi = require('erc-20-abi')
const token = new web3.eth.Contract(abi, address)
token.methods.symbol().call().then(console.log) // prints the token's symbol
```
## License
MIT