@zapjs/zaptoken
Zap Token
Last updated 12 days ago by propulsor .
ISC · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @zapjs/zaptoken 
SYNC missed versions from official npm registry.

@zapjs/zaptoken

This repository provides an interface tothe Zap ERC20 token contract. This package enables a Zap holder to check their balance, transfer Zap to other accounts, and delegate transfers (approvals) to other accounts and smart contracts.

Prerequisites

- Nodejs and npm>=6.1.11
- Typescript

Usage

Using ZapToken package for ERC20 methods with Zap Token
npm install --save `@zapjs/zaptoken`
import {ZaopToken} from '@zapjs/zaptoken';

let myZapToken = new ZapToken();

Custom configuration

let myZapToken = new ZapToken({artifactDir,networkId,networkProvider})

get Zap balance of an addrss

const balance = await myZapToken.balanceOf(address);

Approve Zap Token to an address

await myZapToken.approve({from,to,amount,gas})
//note : from address has to be in web3.eth.accounts

Send Zap Token to an address

await myZapToken.send({from,to,amount,gas})
//note : from address has to be in web3.eth.accounts

See more Usages of each packages :

Built With

Current Tags

  • 2.0.15                                ...           latest (12 days ago)

19 Versions

  • 2.0.15                                ...           12 days ago
  • 2.0.14                                ...           19 days ago
  • 2.0.13                                ...           2 months ago
  • 2.0.12                                ...           2 months ago
  • 2.0.11                                ...           2 months ago
  • 2.0.10                                ...           3 months ago
  • 2.0.9                                ...           3 months ago
  • 2.0.8                                ...           3 months ago
  • 2.0.7                                ...           3 months ago
  • 2.0.6                                ...           3 months ago
  • 2.0.5                                ...           3 months ago
  • 2.0.4                                ...           3 months ago
  • 2.0.3                                ...           3 months ago
  • 2.0.2                                ...           3 months ago
  • 2.0.0                                ...           3 months ago
  • 1.0.4                                ...           3 months ago
  • 1.0.3                                ...           4 months ago
  • 1.0.2                                ...           4 months ago
  • 1.0.1                                ...           4 months ago
Downloads
Today 0
This Week 0
This Month 58
Last Day 0
Last Week 0
Last Month 50
Dependencies (5)
Dev Dependencies (14)

Copyright 2014 - 2017 © taobao.org |